| 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
MC/DC0%0/2
ref $that || $that
ref $that
$that
Truth table33%1/3
A || B
A= ref $thatB= $that
| |||||||||||||||||||||
| 22 | 3 | my $self = $that->SUPER::new(@_); | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 3 | bless( $self, $proto ); | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 3 | return $self; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 40 | 1; | |||||||||||||||||||