File Coverage

lib/Rex/Inventory/SMBios/BaseBoard.pm
Criterion Covered Total %
statement 11 16 68.7
branch n/a
condition 0 3 0.0
subroutine 4 5 80.0
pod 0 1 0.0
total 15 25 60.0


line stmt bran cond sub pod time code
1             #
2             # (c) Jan Gehring
3             #
4              
5             package Rex::Inventory::SMBios::BaseBoard;
6              
7 38     38   518 use v5.12.5;
  38         145  
8 38     38   222 use warnings;
  38         96  
  38         1685  
9              
10             our $VERSION = '1.14.2.2'; # TRIAL VERSION
11              
12 38     38   433 use Rex::Inventory::SMBios::Section;
  38         102  
  38         1989  
13 38     38   268 use base qw(Rex::Inventory::SMBios::Section);
  38         76  
  38         5520  
14              
15             __PACKAGE__->section("base board");
16              
17             __PACKAGE__->has(
18             [
19             'Manufacturer', 'Serial Number',
20             'Version', { from => 'Product', key => 'Product Name' }
21             ],
22             1
23             );
24              
25             sub new {
26 0     0 0   my $that = shift;
27 0   0       my $proto = ref($that) || $that;
28 0           my $self = $that->SUPER::new(@_);
29              
30 0           bless( $self, $proto );
31              
32 0           return $self;
33             }
34              
35             1;