Branch Coverage

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


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