Branch Coverage

blib/lib/Mojo/Reactor/Poll.pm
Criterion Covered Total %
branch 42 46 91.3


line true false branch
12 1 12431 unless my $timer = $self->{'timers'}{$id}
13 2897 9534 if defined $after
36 1480 49691 unless $self->{'running'}
43 10 51161 unless keys %{$$self{"timers"};} or keys %{$$self{"io"};}
47 51160 1 defined $min ? :
48 28036 23125 $timeout <= 0 ? :
51 25134 26027 if (keys %{$$self{'io'};}) { }
18 26009 elsif ($timeout) { }
55 24104 1030 if (IO::Poll::_poll($timeout, @poll) > 0)
58 20085 37247 if ($mode & 59)
59 0 20085 unless my $io = $self->{'io'}{$fd}
60 20085 0 if ++$i
62 47517 9815 unless $mode & 4 and my $io = $self->{'io'}{$fd}
63 9815 0 if ++$i
74 5 99270 unless my $t = $self->{'timers'}{$id}
75 71093 28177 unless $t->{'time'} <= $now
78 26854 1323 if ($t->{'recurring'}) { }
83 28177 0 if $t->{'cb'}
92 2359 901 unless ref $remove
111 1 11399 unless my $io = $self->{'io'}{fileno $handle}
113 11197 202 if $read
114 8786 2613 if $write
141 3 58074 unless eval { do { $self->$cb(@_); 1 } }