Branch Coverage

blib/lib/AsyncPing.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
57 0 0 unless my $socket = 'IO::Socket::INET'->new('Proto', 'icmp', 'Type', 3, 'Blocking', 0)
62 0 0 if ($arg{'timeout'})
65 0 0 if ($arg{'try'} > 0)
88 0 0 if ($@)
91 0 0 if ($n and $ip) { }
105 0 0 if ($bytesread > 0) { }
109 0 0 if (exists $expected->{$ipstr} and $expected->{$ipstr} == 0)
113 0 0 if $count == $got
115 0 0 if ($sent < $count) { }
0 0 elsif (not $endtime) { }
121 0 0 unless $self->{'socket'}->send($msg, 0, scalar sockaddr_in(0, $ip))
130 0 0 if ($expected->{$ip} == 1) { }
146 0 0 if ($result->{$h} == 0)
151 0 0 if (@failedservers)
154 0 0 if ($retryresult->{$h} == 1)
170 0 0 if length($msg) % 2