Branch Coverage

lib/Rex/Inventory/DMIDecode.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
37 122 0 if ($section)
69 3 0 if ($cpu->{'Status'} =~ /Populated/u)
87 3 9 if ($mem->{'Size'} =~ /\d+/u)
124 3 51 if ($self->{'lines'}) { }
128 51 0 unless (can_run("dmidecode"))
135 0 0 if ($@)
149 60 675 if $l =~ /^Handle/u
150 3 672 if $l =~ /^#/u
151 3 669 if $l =~ /^SMBIOS/u
152 60 609 if $l =~ /^$/u
153 3 606 if $l =~ /^End Of Table$/u
158 66 540 unless (substr($l, 0, 1) eq "\t")
168 0 540 if $l =~ /^$/u
170 489 51 if ($l =~ /^\t[a-zA-Z0-9]/u) { }
51 0 elsif ($l =~ /^\t\t[a-zA-Z0-9]/u) { }
171 0 489 if (exists $section{$section} and not ref $section{$section}) { }
453 72 elsif (exists $section{$section} and ref $section{$section}) { }
185 24 429 if ($new_section)
200 0 36 unless ($val)
207 21 30 unless (ref $href->{$sub_section})