lib/Rex/Inventory/DMIDecode/Bios.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/BaseBoard.pm ↑ Summary lib/Rex/Inventory/DMIDecode/MemoryArray.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Inventory::DMIDecode::Bios;
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("BIOS Information");
16  
17 40 __PACKAGE__->has( [ 'Vendor', 'Version', 'Release Date', ] );
18  
19 3 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
20 3 my $that = shift;
21 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
22 3 my $self = $that->SUPER::new(@_);
23  
24 3 bless( $self, $proto );
25  
26 3 return $self;
27 }
28  
29 40 1;
« lib/Rex/Inventory/DMIDecode/BaseBoard.pm ↑ Summary lib/Rex/Inventory/DMIDecode/MemoryArray.pm »