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   550 use v5.12.5;
  39         137  
8 39     39   214 use warnings;
  39         357  
  39         1882  
9              
10             our $VERSION = '1.14.2.3'; # TRIAL VERSION
11              
12 39     39   954 use Rex::Inventory::DMIDecode::Section;
  39         167  
  39         2108  
13 39     39   245 use base qw(Rex::Inventory::DMIDecode::Section);
  39         81  
  39         5574  
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         16 my $self = $that->SUPER::new(@_);
24              
25 3         7 bless( $self, $proto );
26              
27 3         8 return $self;
28             }
29              
30             1;