Branch Coverage

blib/lib/Future/IO/ImplBase.pm
Criterion Covered Total %
branch 34 50 68.0


line true false branch
53 0 5 unless ($Future::IO::IMPL //= $pkg) eq $pkg
78 1 0 if ($accepted) { }
118 0 2 if $ret
120 0 2 unless ($errno == 115 or !!0)
130 1 1 if ($errno)
154 4 2 if (defined $fromaddr and length $buf) { }
2 0 elsif (defined $fromaddr) { }
0 0 elsif ($! == 11 or $! == 11) { }
155 2 2 $with_fromaddr ? :
165 0 0 $with_fromaddr ? :
203 4 0 eval { do { $len = $fh->send($data, $flags, $to); 1 } } ? :
205 0 4 if (defined $e) { }
3 1 elsif (defined $len) { }
0 1 elsif ($! == 11 or $! == 11) { }
251 20 111 if ($ret) { }
11 100 elsif (defined $ret) { }
100 0 elsif ($! == 11 or $! == 11) { }
298 11 2 if (defined $len) { }
0 2 elsif ($! == 11 or $! == 11) { }
369 4 0 if (@alarms)
372 0 4 if $timeout < 0
384 4 15 if $alarms[0]->time > $now
388 6 9 if $f->is_cancelled
409 109 3 if (not @alarms or $time >= $alarms[-1]->time) { }
429 4 99 if $cancelled_alarms >= 5 and $cancelled_alarms > @alarms / 2