Branch Coverage

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


line true false branch
162 1 2771 unless my $watch = $iowatches->{$fd}
165 2 2769 $poll ? :
172 1289 1482 if ($events & 25)
173 1282 7 if defined $watch->[1]
176 760 2011 if ($events & 30)
177 109 651 if defined $watch->[2]
180 656 2115 if ($events & 24)
181 2 654 if defined $watch->[3]
222 1105 164 if ($timeout)
225 76 1029 if $fraction
228 0 1269 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 1156 113 if (@pollmasks) { }
270 1035 121 defined $timeout ? :
272 39 175 if ($pollret == -1 and $! == 4 or $pollret == 0 and $self->{'sigproxy'})
278 39 0 if $secondattempt > 0
289 0 1269 unless defined $pollret
309 4 798 $poll ? :
313 696 106 if $params{'on_read_ready'}
314 106 696 if $params{'on_write_ready'}
315 2 800 if $params{'on_hangup'}
321 1 801 if $mask == $curmask
323 4 797 if ($poll) { }
344 3 726 $poll ? :
348 596 133 if $params{'on_read_ready'}
349 133 596 if $params{'on_write_ready'}
350 2 727 if $params{'on_hangup'}
361 35 694 if $mask == $curmask
363 3 691 if ($poll) { }
368 12 679 $mask ? :