Branch Coverage

blib/lib/IO/Async/Loop/Poll.pm
Criterion Covered Total %
branch 55 66 83.3


line true false branch
162 1 2703 unless my $watch = $iowatches->{$fd}
165 2 2701 $poll ? :
172 1262 1441 if ($events & 25)
173 1258 4 if defined $watch->[1]
176 756 1947 if ($events & 30)
177 91 665 if defined $watch->[2]
180 667 2036 if ($events & 24)
181 2 665 if defined $watch->[3]
222 1044 149 if ($timeout)
225 57 987 if $fraction
228 0 1193 if (my $poll = $self->{'poll'}) { }
236 0 0 if ($poll->handles) { }
239 0 0 if ($pollret == -1 and $! == 4 or $pollret == 0 and defined $self->{'sigproxy'})
249 0 0 if $secondattempt > 0
259 0 0 unless defined $pollret
269 1101 92 if (@pollmasks) { }
270 1005 96 defined $timeout ? :
272 32 172 if ($pollret == -1 and $! == 4 or $pollret == 0 and $self->{'sigproxy'})
278 32 0 if $secondattempt > 0
289 0 1193 unless defined $pollret
309 4 769 $poll ? :
313 682 91 if $params{'on_read_ready'}
314 91 682 if $params{'on_write_ready'}
315 2 771 if $params{'on_hangup'}
321 1 772 if $mask == $curmask
323 4 768 if ($poll) { }
344 3 699 $poll ? :
348 584 118 if $params{'on_read_ready'}
349 118 584 if $params{'on_write_ready'}
350 2 700 if $params{'on_hangup'}
361 35 667 if $mask == $curmask
363 3 664 if ($poll) { }
368 12 652 $mask ? :