lib/Rex/Inventory/SMBios/MemoryArray.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 61.2% 19 / 31 CC 2 SCAR 9.8
CC
2
Cov
65%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« lib/Rex/Inventory/SMBios/Memory.pm ↑ Summary lib/Rex/Inventory/SMBios/SystemInformation.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Inventory::SMBios::MemoryArray;
6  
7 39 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 39 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 39 our $VERSION = '1.16.1'; # VERSION
11  
12 39 ▶use Rex::Inventory::SMBios::Section;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 39 ▶use base qw(Rex::Inventory::SMBios::Section);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 39 __PACKAGE__->section("physical memory array");
16  
17 39 __PACKAGE__->has(
18 [
19 { key => 'Number Of Devices', from => "Number of Slots/Sockets" },
20 { key => 'Error Correction Type', from => "ECC" },
21 { key => 'Maximum Capacity', from => "Max Capacity" },
22 'Location',
23 ],
24 1
25 );
26  
27 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
28 0 my $that = shift;
29 0 ▶ my $proto = ref($that) || $that;
Condition0%0/3
ref $that || $that
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table0%0/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
30 0 my $self = $that->SUPER::new(@_);
31  
32 0 bless( $self, $proto );
33  
34 0 return $self;
35 }
36  
37 39 1;
« lib/Rex/Inventory/SMBios/Memory.pm ↑ Summary lib/Rex/Inventory/SMBios/SystemInformation.pm »