Branch Coverage

blib/lib/Mojo/Reactor/Poll.pm
Criterion Covered Total %
branch 43 46 93.4


line true false branch
12 1 11581 unless my $timer = $self->{'timers'}{$id}
13 3142 8439 if defined $after
36 1622 40374 unless $self->{'running'}
43 10 1 unless keys %{$$self{"timers"};} or keys %{$$self{"io"};}
47 41985 1 defined $min ? :
48 23175 18811 $timeout <= 0 ? :
51 20838 21148 if (keys %{$$self{'io'};}) { }
17 21131 elsif ($timeout) { }
55 19684 1154 if (IO::Poll::_poll($timeout, @poll) > 0)
58 16234 34124 if ($mode & 59)
59 1 16233 unless my $io = $self->{'io'}{$fd}
60 16233 0 if ++$i
62 42005 8352 unless $mode & 4 and my $io = $self->{'io'}{$fd}
63 8352 0 if ++$i
74 5 85351 unless my $t = $self->{'timers'}{$id}
75 62022 23329 unless $t->{'time'} <= $now
78 21887 1442 if ($t->{'recurring'}) { }
83 23329 0 if $t->{'cb'}
92 2687 1038 unless ref $remove
111 1 10616 unless my $io = $self->{'io'}{fileno $handle}
113 10372 244 if $read
114 7779 2837 if $write
141 3 47911 unless eval { do { $self->$cb(@_); 1 } }