Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Megacli.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
25 0 0 unless $count
55 0 0 unless $$adp{$sum->{'encl_id'}} == $pd->{'Enclosure Device ID'} and $sum->{'encl_pos'} eq $pd->{'Enclosure position'} and $sum->{'slot'} == $pd->{'Slot Number'}
64 0 0 if ($sum->{'Vendor Id'} ne 'ATA')
75 0 0 if ($pd->{'Inquiry Data'} =~ /($sum->{'Product Id'}(?:\S*))/)
85 0 0 if ($model =~ /^(\S+)\s+(\S+)$/)
92 0 0 defined $vendor ? :
107 0 2 exists $params{'adp'} ? :
113 0 2 unless $handle
120 2 58 if ($line =~ /Enclosure (\d+):/)
124 2 58 if ($line =~ /Device ID\s+:\s+(\d+)/)
136 0 2 exists $params{'adp'} ? :
142 0 2 unless $handle
146 2 37 if $line =~ /^\s+PD\s+$/
153 2 104 if $line =~ /^Storage$/
156 13 91 if $line =~ /Connector\s*:/
158 12 92 if ($line =~ /Connector\s*:\s*(\d+)(?:)?: Slot (\d+)/) { }
79 13 elsif ($line =~ /^\s*(.+\S)\s*:\s*(.+\S)/) { }
173 1 12 unless defined $drive{$i}{'slot'}
182 0 2 exists $params{'adp'} ? :
188 0 2 unless $handle
194 78 502 unless $line =~ /^([^:]+)\s*:\s*(.*\S)/
197 12 490 if $key =~ /Enclosure Device ID/