lib/Rex/Inventory/Bios.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 90.6% 29 / 32 CC 2 SCAR 2.7
CC
2
Cov
92%
get
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Rex/Inventory/DMIDecode/SystemInformation.pm ↑ Summary lib/Rex/Inventory/Proc.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Inventory::Bios;
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::Hardware::Host;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 39 ▶use Rex::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 39 ▶use Rex::Inventory::SMBios;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 39 ▶use Rex::Inventory::DMIDecode;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 51 ▶sub get {
Subroutine get: called CC=2 SCAR=8.1
Pod undocumented
19  
20 51 ▶ if ( Rex::Hardware::Host::get_operating_system() eq "SunOS" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (Rex::Hardware::Host::get_operating_system() eq 'SunOS') { } 0 51 51
21 0 return Rex::Inventory::SMBios->new;
22 }
23 else {
24 51 return Rex::Inventory::DMIDecode->new;
25 }
26  
27 }
28  
29 39 1;
« lib/Rex/Inventory/DMIDecode/SystemInformation.pm ↑ Summary lib/Rex/Inventory/Proc.pm »