lib/Rex/Inventory/DMIDecode/MemoryArray.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 83.8% 26 / 31 CC 2 SCAR 3.0
CC
2
Cov
91%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« lib/Rex/Inventory/DMIDecode/Bios.pm ↑ Summary lib/Rex/Inventory/DMIDecode/SystemInformation.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Inventory::DMIDecode::MemoryArray;
6  
7 40 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 40 our $VERSION = '1.16.1'; # VERSION
11  
12 40 ▶use Rex::Inventory::DMIDecode::Section;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 40 ▶use base qw(Rex::Inventory::DMIDecode::Section);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 40 __PACKAGE__->section("Physical Memory Array");
16  
17 40 __PACKAGE__->has(
18 [
19 'Number Of Devices',
20 'Error Correction Type',
21 'Maximum Capacity',
22 'Location',
23 ],
24 1
25 );
26  
27 3 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
28 3 my $that = shift;
29 3 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
030
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table33%1/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
30 3 my $self = $that->SUPER::new(@_);
31  
32 3 bless( $self, $proto );
33  
34 3 return $self;
35 }
36  
37 40 1;
« lib/Rex/Inventory/DMIDecode/Bios.pm ↑ Summary lib/Rex/Inventory/DMIDecode/SystemInformation.pm »