lib/Rex/Inventory/DMIDecode/SystemInformation.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/MemoryArray.pm ↑ Summary lib/Rex/Inventory/Bios.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Inventory::DMIDecode::SystemInformation;
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("System Information");
16  
17 40 __PACKAGE__->has(
18 [
19 'Manufacturer', 'Product Name', 'UUID', 'SKU Number',
20 'Family', 'Version', 'Serial Number',
21 ]
22 );
23  
24 54 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
25 54 my $that = shift;
26 54 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
0540
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table33%1/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
27 54 my $self = $that->SUPER::new(@_);
28  
29 54 bless( $self, $proto );
30  
31 54 return $self;
32 }
33  
34 40 1;
« lib/Rex/Inventory/DMIDecode/MemoryArray.pm ↑ Summary lib/Rex/Inventory/Bios.pm »