Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Generic/Dmidecode/Battery.pm
Criterion Covered Total %
branch 0 20 0.0


line true false branch
11 0 0 if $params{'no_category'}{'battery'}
23 0 0 unless $battery
34 0 0 unless $$infos{'22'}
47 0 0 if ($$info{'Manufacture Date'}) { }
0 0 elsif ($$info{'SBDS Manufacture Date'}) { }
53 0 0 if ($$info{'Design Capacity'} and $$info{'Design Capacity'} =~ /(\d+) \s m[WA]h$/x)
58 0 0 if ($$info{'Design Voltage'} and $$info{'Design Voltage'} =~ /(\d+) \s mV$/x)
70 0 0 if ($string =~ m[(\d{1,2}) [/-] (\d{1,2}) [/-] (\d{2})]x) { }
0 0 elsif ($string =~ m[(\d{4}) [/-] (\d{1,2}) [/-] (\d{1,2})]x) { }
73 0 0 $3 > 90 ? :