Branch Coverage

blib/lib/FusionInventory/Agent/Tools/Network.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
81 3 27 unless $address and $mask
93 0 16 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 116 unless $address
149 2 15 unless $prefix
157 0 16 unless $prefix
168 6 0 if ($Socket::VERSION >= 1.94)
176 3 3 if ($error)
186 0 6 if ($error)
200 3 3 unless (@addresses)
203 3 0 unless ($result)
206 0 3 if $logger
221 0 15 unless $string
224 9 6 if $string =~ /^$ip_address_pattern/
234 0 18 unless $string
235 0 18 unless $ranges
239 0 18 unless ($address)
247 6 15 if (not $result and Net::IP::Error())
253 3 12 if $result == $FusionInventory::Agent::Tools::Network::IP_A_IN_B_OVERLAP
256 6 6 if $result == $FusionInventory::Agent::Tools::Network::IP_IDENTICAL