Branch Coverage

blib/lib/FusionInventory/Agent/Tools/Network.pm
Criterion Covered Total %
branch 26 46 56.5


line true false branch
81 3 29 unless $address and $mask
93 0 17 unless $address and $mask
106 0 2 unless $address1 and $address2 and $mask
120 0 0 unless $address1 and $address2 and $mask
132 0 31 unless $address
140 0 118 unless $address
149 2 15 unless $prefix
157 0 17 unless $prefix
167 6 0 if ($Socket::VERSION >= 1.94) { }
175 3 3 if ($error)
176 0 3 if $logger
187 0 6 if ($error)
188 0 0 if $logger
202 0 0 unless ($result)
203 0 0 if $logger
219 0 15 unless $string
222 9 6 if $string =~ /^$ip_address_pattern/
232 0 18 unless $string
233 0 18 unless $ranges
237 0 18 unless ($address)
245 12 12 if (not $result and Net::IP::Error())
251 3 9 if $result == $FusionInventory::Agent::Tools::Network::IP_A_IN_B_OVERLAP
254 6 3 if $result == $FusionInventory::Agent::Tools::Network::IP_IDENTICAL