Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Solaris/Storages.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
10 0 0 if $params{'no_category'}{'storage'}
25 0 0 if (-l "/dev/rdsk/$storage->{'NAME'}s2")
30 0 0 $rdisk_path =~ /->.*scsi@/ ? :
0 0 $rdisk_path =~ /->.*fp@/ ? :
0 0 $rdisk_path =~ /->.*scsi_vhci/ ? :
44 0 4 unless $handle
50 214 852 if ($line =~ /^(\S+)\s+Soft/)
53 214 852 if ($line =~ /^ Vendor: \s (\S+) \s+ Product: \s (\S.*?\S) \s+ Revision: \s (\S+) \s+ Serial \s No: \s (\S*) /x)
62 1 213 if $4
64 214 852 if ($line =~ /<(\d+) bytes/)
67 214 852 if ($line =~ /^Illegal/)
70 1 213 if ($storage->{'SERIALNUMBER'})
73 0 1 $storage->{'DESCRIPTION'} ? :
78 214 0 if ($storage->{'FIRMWARE'})
81 1 213 $storage->{'DESCRIPTION'} ? :
84 214 0 if ($storage->{'MANUFACTURER'})
86 204 10 if ($storage->{'MANUFACTURER'} eq 'ATA' and $storage->{'MODEL'} =~ /^(Hitachi|Seagate|INTEL) (.+)/i)