Branch Coverage

blib/lib/Mojo/Reactor/Poll.pm
Criterion Covered Total %
branch 41 46 89.1


line true false branch
12 1 14652 unless my $timer = $self->{'timers'}{$id}
13 3142 11510 if defined $after
36 1749 71700 unless $self->{'running'}
43 10 1 unless keys %{$$self{"timers"};} or keys %{$$self{"io"};}
47 73438 1 defined $min ? :
48 41214 32225 $timeout <= 0 ? :
51 34925 38514 if (keys %{$$self{'io'};}) { }
18 38496 elsif ($timeout) { }
55 33770 1155 if (IO::Poll::_poll($timeout, @poll) > 0)
58 28755 47930 if ($mode & 59)
59 0 28755 unless my $io = $self->{'io'}{$fd}
60 28755 0 if ++$i
62 63689 12996 unless $mode & 4 and my $io = $self->{'io'}{$fd}
63 12996 0 if ++$i
74 0 143153 unless my $t = $self->{'timers'}{$id}
75 101787 41366 unless $t->{'time'} <= $now
78 39923 1443 if ($t->{'recurring'}) { }
83 41366 0 if $t->{'cb'}
92 2687 1037 unless ref $remove
111 1 13658 unless my $io = $self->{'io'}{fileno $handle}
113 13414 244 if $read
114 10822 2836 if $write
141 3 83114 unless eval { do { $self->$cb(@_); 1 } }