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