File Coverage

lib/Rex/Inventory/DMIDecode/BaseBoard.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::BaseBoard;
6              
7 39     39   558 use v5.12.5;
  39         148  
8 39     39   243 use warnings;
  39         97  
  39         1819  
9              
10             our $VERSION = '1.14.2.2'; # TRIAL VERSION
11              
12 39     39   934 use Rex::Inventory::DMIDecode::Section;
  39         111  
  39         2126  
13 39     39   253 use base qw(Rex::Inventory::DMIDecode::Section);
  39         93  
  39         5386  
14              
15             __PACKAGE__->section("Base Board Information");
16              
17             __PACKAGE__->has(
18             [ 'Manufacturer', 'Serial Number', 'Version', 'Product Name', ] );
19              
20             sub new {
21 3     3 0 8 my $that = shift;
22 3   33     14 my $proto = ref($that) || $that;
23 3         15 my $self = $that->SUPER::new(@_);
24              
25 3         7 bless( $self, $proto );
26              
27 3         7 return $self;
28             }
29              
30             1;