Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Solaris/Networks.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
24 0 0 if $params{'no_category'}{'network'}
41 0 0 if isSameNetwork($default, $$interface{'IPADDRESS'}, $$interface{'IPMASK'})
70 0 0 if ($$interface{'DESCRIPTION'} =~ /^(\S+)(\d+)/)
74 0 0 $nic =~ /e1000g/ ? :
0 0 $nic =~ /ipge/ ? :
0 0 $nic =~ /ce/ ? :
0 0 $nic =~ /nxge/ ? :
0 0 $nic =~ /bge/ ? :
0 0 $nic =~ /dmfe/ ? :
0 0 $nic =~ /aggr/ ? :
89 0 0 if ($zone and $OSLevel and $OSLevel =~ /5.10/)
120 0 0 $nic =~ /ge/ ? :
200 0 0 if ($speed)
201 0 0 $speed == 1000 ? :
0 0 $speed == 100 ? :
0 0 $speed == 10 ? :
0 0 $speed == 0 ? :
209 0 0 if ($duplex)
210 0 0 $duplex == 0 ? :
0 0 $duplex == 1 ? :
0 0 $duplex == 2 ? :
217 0 0 if ($auto)
218 0 0 $auto == 1 ? :
0 0 $auto == 0 ? :
229 0 0 unless $handle
235 0 0 if ($line =~ /^(\S+):(\S+):/) { }
0 0 elsif ($line =~ /^(\S+):/) { }
237 0 0 if $interface
246 0 0 if $interface
255 0 0 if ($line =~ /inet ($FusionInventory::Agent::Task::Inventory::Solaris::Networks::ip_address_pattern)/)
258 0 0 if ($line =~ /netmask ($FusionInventory::Agent::Task::Inventory::Solaris::Networks::hex_ip_address_pattern)/i)
261 0 0 if ($line =~ /ether\s+(\S+)/i)
266 0 0 if ($line =~ /
273 0 0 if $interface
280 0 0 unless $handle
284 0 0 if $line =~ /device/
285 0 0 if $line =~ /key/
291 0 0 unless $line =~ /(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/
295 0 0 if $line =~ /UP/
305 0 0 unless $handle
311 0 0 if $line =~ /HBA Port WWN:\s+(\S+)/
313 0 0 if $line =~ /OS Device Name:\s+(\S+)/
315 0 0 if $line =~ /Current Speed:\s+(\S+)/
317 0 0 if $line =~ /Node WWN:\s+(\S+)/
319 0 0 if $line =~ /Driver Name:\s+(\S+)/i
321 0 0 if $line =~ /Manufacturer:\s+(.*)$/
323 0 0 if $line =~ /Model:\s+(.*)$/
325 0 0 if $line =~ /Firmware Version:\s+(.*)$/
327 0 0 if $line =~ /online/
330 0 0 if ($$interface{'DESCRIPTION'} and $$interface{'WWN'})
331 0 0 unless $$interface{'STATUS'}