Branch Coverage

blib/lib/FusionInventory/Agent/Task/Deploy/P2P.pm
Criterion Covered Total %
branch 11 40 27.5


line true false branch
25 0 3 unless $ipLimit
31 1 2 if $ip_bytes[0] == 127
32 0 2 if $ip_bytes[0] == 169
49 0 2 if $ipStart eq $ipEnd
51 0 2 if ($ipInterval->size > 5000)
60 6 1229 if ($after or $address->{'ip'} eq $ipInterval->ip) { }
1223 6 elsif (@newIPs > $ipLimit / 2) { }
68 0 2 if $logger
80 0 0 unless @$deck
94 0 0 if $cache{'date'} + 600 > time
99 0 0 if ($FusionInventory::Agent::Task::Deploy::P2P::OSNAME eq 'linux') { }
0 0 elsif ($FusionInventory::Agent::Task::Deploy::P2P::OSNAME eq 'MSWin32') { }
113 0 0 unless $interface->{'IPADDRESS'}
114 0 0 unless $interface->{'IPMASK'}
115 0 0 unless lc $interface->{'STATUS'} eq 'up'
116 0 0 if $interface->{'IPADDRESS'} =~ /^127\./
126 0 0 unless (@addresses)
160 0 0 unless $ipToTest
171 0 0 if (@ipToTestList and @ipFound < 30) { }
184 0 0 unless ($addr)