Branch Coverage

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


line true false branch
163 1 3043 unless my $watch = $iowatches->{$fd}
166 2 3041 $poll ? :
173 1285 1758 if ($events & 25)
174 1281 4 if defined $watch->[1]
177 671 2372 if ($events & 30)
178 95 576 if defined $watch->[2]
181 578 2465 if ($events & 24)
182 2 576 if defined $watch->[3]
223 1223 150 if ($timeout)
226 61 1162 if $fraction
229 0 1373 if (my $poll = $self->{'poll'}) { }
237 0 0 if ($poll->handles) { }
240 0 0 if ($pollret == -1 and $! == 4 or $pollret == 0 and defined $self->{'sigproxy'})
250 0 0 if $secondattempt > 0
260 0 0 unless defined $pollret
270 1278 95 if (@pollmasks) { }
271 1160 118 defined $timeout ? :
273 55 201 if ($pollret == -1 and $! == 4 or $pollret == 0 and $self->{'sigproxy'})
279 55 0 if $secondattempt > 0
290 0 1373 unless defined $pollret
310 4 774 $poll ? :
314 685 93 if $params{'on_read_ready'}
315 93 685 if $params{'on_write_ready'}
316 2 776 if $params{'on_hangup'}
322 1 777 if $mask == $curmask
324 4 773 if ($poll) { }
345 3 701 $poll ? :
349 586 118 if $params{'on_read_ready'}
350 120 584 if $params{'on_write_ready'}
351 2 702 if $params{'on_hangup'}
362 35 669 if $mask == $curmask
364 3 666 if ($poll) { }
369 12 654 if ($mask) { }