Branch Coverage

blib/lib/IO/Async/Loop/Epoll.pm
Criterion Covered Total %
branch 75 106 70.7


line true false branch
106 0 12 unless defined $epoll
175 0 36 if $self->{'pid'} != $$
179 1 35 if keys %{$$self{'fakeevents'};}
182 36 0 defined $timeout ? :
188 0 36 if not defined $ret and $! != 4
207 1 0 if ($bits & 1)
208 1 0 if $watch->[1]
212 1 0 if ($bits & 2)
213 1 0 if $watch->[2]
217 0 1 if ($bits & 4)
218 0 0 if $watch->[3]
225 16 1 if ($sigslot->pending)
236 0 36 if defined $ret and $ret == $self->{'maxevents'}
248 3 11 if $self->{'pid'} != $$
270 4 3 if ($events->{'in'} or $events->{'hup'} or $events->{'err'})
271 9 2 if $watch->[1]
274 5 5 if ($events->{'out'} or $events->{'hup'} or $events->{'err'})
275 2 7 if $watch->[2]
278 6 8 if ($events->{'hup'} or $events->{'err'})
279 2 4 if $watch->[3]
284 9 5 if $params{'on_read_ready'}
285 5 9 if $params{'on_write_ready'}
286 2 12 if $params{'on_hangup'}
289 10 4 if $mask & 1
290 5 9 if $mask & 2
291 2 12 if $mask & 4
295 13 1 if (not $curmask) { }
1 0 elsif ($mask != $curmask) { }
296 0 13 if defined $self->{'refaddr_for_fileno'}{$fd}
300 12 1 if (defined $epoll->add($handle, \@bits, $cb)) { }
1 0 elsif ($! == 1) { }
315 0 1 unless $self->{'refaddr_for_fileno'}{$fd} == &refaddr($handle)
318 0 1 if (exists $fakeevents->{$fd}) { }
322 0 1 unless defined $epoll->modify($handle, \@bits, $cb)
335 0 11 if $self->{'pid'} != $$
344 0 11 unless my $curmask = $self->{'masks'}{$fd}
345 0 11 unless my $cb = $self->{'callbacks'}{$fd}
348 6 5 if $params{'on_read_ready'}
349 5 6 if $params{'on_write_ready'}
350 2 9 if $params{'on_hangup'}
354 0 11 unless $self->{'refaddr_for_fileno'}{$fd} == &refaddr($handle)
357 1 10 if ($mask) { }
358 0 1 if (exists $fakeevents->{$fd}) { }
363 1 0 if $mask & 1
364 0 1 if $mask & 2
365 0 1 if $mask & 4
367 0 1 unless defined $epoll->modify($handle, \@bits, $cb)
374 1 9 if (exists $fakeevents->{$fd}) { }
378 0 9 unless defined $epoll->delete($handle)
394 1 7 unless exists $SIG{$signal}
410 0 7 unless sigaction($signum, $sigaction)
418 0 7 unless exists $SIG{$signal}
438 0 4 unless my $watches = $self->{'iowatches'}