File Coverage

lib/Rex/Inventory/DMIDecode/Bios.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 1 3 33.3
subroutine 5 5 100.0
pod 0 1 0.0
total 22 25 88.0


line stmt bran cond sub pod time code
1             #
2             # (c) Jan Gehring
3             #
4              
5             package Rex::Inventory::DMIDecode::Bios;
6              
7 39     39   554 use v5.12.5;
  39         136  
8 39     39   216 use warnings;
  39         131  
  39         1694  
9              
10             our $VERSION = '1.14.2.3'; # TRIAL VERSION
11              
12 39     39   413 use Rex::Inventory::DMIDecode::Section;
  39         103  
  39         2111  
13 39     39   283 use base qw(Rex::Inventory::DMIDecode::Section);
  39         91  
  39         6792  
14              
15             __PACKAGE__->section("BIOS Information");
16              
17             __PACKAGE__->has( [ 'Vendor', 'Version', 'Release Date', ] );
18              
19             sub new {
20 3     3 0 6 my $that = shift;
21 3   33     11 my $proto = ref($that) || $that;
22 3         13 my $self = $that->SUPER::new(@_);
23              
24 3         11 bless( $self, $proto );
25              
26 3         16 return $self;
27             }
28              
29             1;