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   538 use v5.12.5;
  39         156  
8 39     39   199 use warnings;
  39         87  
  39         1795  
9              
10             our $VERSION = '1.14.2.2'; # TRIAL VERSION
11              
12 39     39   322 use Rex::Inventory::DMIDecode::Section;
  39         89  
  39         2046  
13 39     39   290 use base qw(Rex::Inventory::DMIDecode::Section);
  39         97  
  39         6598  
14              
15             __PACKAGE__->section("BIOS Information");
16              
17             __PACKAGE__->has( [ 'Vendor', 'Version', 'Release Date', ] );
18              
19             sub new {
20 3     3 0 4 my $that = shift;
21 3   33     11 my $proto = ref($that) || $that;
22 3         9 my $self = $that->SUPER::new(@_);
23              
24 3         7 bless( $self, $proto );
25              
26 3         7 return $self;
27             }
28              
29             1;