Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/MacOS/Storages.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
11 0 0 if $params{'no_category'}{'storage'}
51 11 14 unless $bus
56 158 23 unless ref $device eq 'HASH'
57 6 17 if (_isStorage($device)) { }
63 124 7 unless ref $subdevice eq 'HASH'
64 3 4 if _isStorage($subdevice)
95 0 9 $bus_name eq 'FireWire' ? :
98 5 4 if (not $device->{'Protocol'}) { }
4 0 elsif ($device->{'Protocol'} eq 'ATAPI' or $device->{'Drive Type'}) { }
104 5 4 if ($storage->{'DISKSIZE'})
109 2 3 if ($storage->{'DISKSIZE'} =~ s/\s*TB//) { }
3 0 elsif ($storage->{'DISKSIZE'} =~ s/\s+GB$//) { }
116 6 3 if ($storage->{'MODEL'})