Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
15 0 0 if $params{'no_category'}{'storage'}
38 0 0 if (-d '/dev/.udev/db/')
46 0 0 unless $udev_device
49 0 0 if $device->{$key}
56 0 0 if (_correctHdparmAvailable())
58 0 0 if $device->{'SERIALNUMBER'} and $device->{'FIRMWARE'}
65 0 0 if $info->{'serial'} and not $device->{'SERIALNUMBER'}
68 0 0 if $info->{'firmware'} and not $device->{'FIRMWARE'}
70 0 0 if $info->{'transport'}
71 0 0 if $info->{'model'}
72 0 0 if $info->{'wwn'}
77 0 0 unless ($device->{'DESCRIPTION'})
86 0 0 if (not $device->{'MANUFACTURER'} or $device->{'MANUFACTURER'} eq 'ATA')
92 0 0 unless ($device->{'DISKSIZE'} or $device->{'TYPE'} =~ /^cd/)
106 0 0 if (-d '/sys/block') { }
112 0 0 if @devices
120 0 0 if (canRun('/usr/bin/lshal')) { }
126 0 0 if @devices
142 0 0 if $description and $description =~ /usb/i
144 0 0 if ($name =~ /^s/) { }
0 0 elsif ($name =~ /^vd/) { }
145 0 0 if ($manufacturer and $manufacturer =~ /ATA/ or $serialnumber and $serialnumber =~ /ATA/ or $description and $description =~ /ATA/) { }
165 0 0 unless canRun('hdparm')