Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/3ware.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
54 0 0 if ($FusionInventory::Agent::Task::Inventory::Generic::Storages::3ware::OSNAME eq 'Linux')
56 0 0 unless @devices
63 0 0 if ($device->{'SERIALNUMBER'} eq 'AMCC_' . $sn or $device->{'MODEL'} eq 'Logical_Disk_' . $unit->{'index'})
86 0 1 unless $handle
90 2 1 unless $line =~ /^(c\d+)\s+([\w-]+)/
105 0 1 unless $handle
109 2 1 unless $line =~ /^(u(\d+))/
124 0 1 unless $handle
128 2 2 unless $line =~ /(p\d+)/
144 0 1 unless $handle
148 1 3 if ($line =~ /Model\s=\s(.*)/) { }
1 2 elsif ($line =~ /Serial\s=\s(.*)/) { }
1 1 elsif ($line =~ /Capacity\s=\s(\S+)\sGB.*/) { }
1 0 elsif ($line =~ /Firmware Version\s=\s(.*)/) { }
172 1 0 $card->{'model'} =~ /^[789]/ ? :
0 1 $card->{'model'} =~ /^[56]/ ? :