Branch Coverage

blib/lib/Mojo/Reactor/Epoll.pm
Criterion Covered Total %
branch 44 52 84.6


line true false branch
19 1 5 unless my $timer = $self->{'timers'}{$id}
44 225 17597 unless $self->{'running'}
50 6 17816 unless keys %{$$self{'timers'};} or keys %{$$self{'io'};}
54 17815 1 defined $min ? :
55 3039 14777 if $timeout < 0
58 15481 2335 if (my $watched = keys %{$$self{'io'};}) { }
0 2335 elsif ($timeout) { }
61 15481 0 if $maxevents < 10
66 15481 0 if defined $count
75 0 21581 unless my $t = $self->{'timers'}{$id}
76 18521 3060 unless $t->{'time'} <= $now
79 3033 27 if (exists $t->{'recurring'}) { }
84 3060 0 if $t->{'cb'}
93 5 32 if (ref $remove) { }
95 3 0 if (exists $self->{'io'}{$fd} and exists $self->{'io'}{$fd}{'epoll_cb'})
125 1 33 unless my $io = $self->{'io'}{$fd}
128 9 24 unless (defined $epoll)
134 19 5 if $read
135 17 7 if $write
137 15 9 exists $io->{'epoll_cb'} ? :
142 0 343 if ($events->{'in'} or $events->{'prio'} or $events->{'hup'} or $events->{'err'})
143 0 15139 unless exists $self->{'io'}{$fd}
146 1809 13673 if ($events->{'out'} or $events->{'hup'} or $events->{'err'})
147 1 1808 unless exists $self->{'io'}{$fd}
185 4 33 if $recurring
197 1 20006 unless eval { do { $self->$cb(@_); 1 } }