Branch Coverage

blib/lib/Mojo/Reactor/Epoll.pm
Criterion Covered Total %
branch 41 48 85.4


line true false branch
29 259 18333 unless $self->{'running'}
35 6 18586 unless keys %{$$self{'timers'};} or keys %{$$self{'io'};}
39 18585 1 defined $min ? :
40 2829 15757 if $timeout < 0
43 16529 2057 if (my $watched = keys %{$$self{'io'};}) { }
7 2050 elsif ($timeout) { }
46 16529 0 if $maxevents < 10
51 16529 0 if defined $count
60 0 21417 unless my $t = $self->{'timers'}{$id}
61 18562 2855 unless $t->{'time'} <= $now
64 2826 29 if ($t->{'recurring'}) { }
69 2855 0 if $t->{'cb'}
78 5 35 if (ref $remove) { }
80 3 0 if (exists $self->{'io'}{$fd} and exists $self->{'io'}{$fd}{'epoll_cb'})
103 1 33 unless my $io = $self->{'io'}{$fd}
106 9 24 unless (defined $epoll)
112 19 5 if $read
113 17 7 if $write
115 15 9 exists $io->{'epoll_cb'} ? :
120 0 344 if ($events->{'in'} or $events->{'prio'} or $events->{'hup'} or $events->{'err'})
121 0 16186 unless exists $self->{'io'}{$fd}
124 2040 14490 if ($events->{'out'} or $events->{'hup'} or $events->{'err'})
125 1 2039 unless exists $self->{'io'}{$fd}
172 1 21079 unless eval { do { $self->$cb(@_); 1 } }