File Coverage

lib/Rex/Inventory/DMIDecode/SystemInformation.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::SystemInformation;
6              
7 39     39   524 use v5.12.5;
  39         174  
8 39     39   214 use warnings;
  39         111  
  39         1734  
9              
10             our $VERSION = '1.14.3'; # VERSION
11              
12 39     39   253 use Rex::Inventory::DMIDecode::Section;
  39         109  
  39         1924  
13 39     39   305 use base qw(Rex::Inventory::DMIDecode::Section);
  39         77  
  39         6790  
14              
15             __PACKAGE__->section("System Information");
16              
17             __PACKAGE__->has(
18             [
19             'Manufacturer', 'Product Name', 'UUID', 'SKU Number',
20             'Family', 'Version', 'Serial Number',
21             ]
22             );
23              
24             sub new {
25 54     54 0 206 my $that = shift;
26 54   33     621 my $proto = ref($that) || $that;
27 54         1201 my $self = $that->SUPER::new(@_);
28              
29 54         167 bless( $self, $proto );
30              
31 54         531 return $self;
32             }
33              
34             1;