File Coverage

lib/Rex/Inventory/SMBios/Memory.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::Memory;
6              
7 38     38   532 use v5.12.5;
  38         126  
8 38     38   231 use warnings;
  38         74  
  38         1827  
9              
10             our $VERSION = '1.14.3'; # VERSION
11              
12 38     38   273 use Rex::Inventory::SMBios::Section;
  38         96  
  38         1973  
13 38     38   303 use base qw(Rex::Inventory::SMBios::Section);
  38         93  
  38         7098  
14              
15             __PACKAGE__->section("memory device");
16              
17             __PACKAGE__->has(
18             [
19             { key => 'Type', from => "Memory Type" },
20             'Speed', 'Size', 'Bank Locator', 'Form Factor',
21             { key => 'Locator', from => "Device Locator" },
22             ],
23             1
24             ); # is_array 1
25              
26             sub new {
27 0     0 0   my $that = shift;
28 0   0       my $proto = ref($that) || $that;
29 0           my $self = $that->SUPER::new(@_);
30              
31 0           bless( $self, $proto );
32              
33 0           return $self;
34             }
35              
36             1;