| 1 | # | ||||||||||||||||||||
| 2 | # (c) Jan Gehring <jan.gehring@gmail.com> | ||||||||||||||||||||
| 3 | # | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | package Rex::Inventory::SMBios::Memory; | ||||||||||||||||||||
| 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::Inventory::SMBios::Section; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | 39 | ▶ | use base qw(Rex::Inventory::SMBios::Section); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 39 | __PACKAGE__->section("memory device"); | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 39 | __PACKAGE__->has( | |||||||||||||||||||
| 18 | [ | ||||||||||||||||||||
| 19 | { key => 'Type', from => "Memory Type" }, | ||||||||||||||||||||
| 20 | 'Speed', 'Size', 'Bank Locator', 'Form Factor', | ||||||||||||||||||||
| 21 | { key => 'Locator', from => "Device Locator" }, | ||||||||||||||||||||
| 22 | ], | ||||||||||||||||||||
| 23 | 1 | ||||||||||||||||||||
| 24 | ); # is_array 1 | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 27 | 0 | my $that = shift; | |||||||||||||||||||
| 28 | 0 | ▶ | my $proto = ref($that) || $that; | ||||||||||||||||||
|
Condition0%0/3
ref $that || $that
MC/DC0%0/2
ref $that || $that
ref $that
$that
Truth table0%0/3
A || B
A= ref $thatB= $that
| |||||||||||||||||||||
| 29 | 0 | my $self = $that->SUPER::new(@_); | |||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 0 | bless( $self, $proto ); | |||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 0 | return $self; | |||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 39 | 1; | |||||||||||||||||||