Branch Coverage

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


line true false branch
12 1 12274 unless my $timer = $self->{'timers'}{$id}
13 2897 9377 if defined $after
36 1517 52227 unless $self->{'running'}
43 10 53734 unless keys %{$$self{"timers"};} or keys %{$$self{"io"};}
47 53733 1 defined $min ? :
48 28158 25576 $timeout <= 0 ? :
51 27757 25977 if (keys %{$$self{'io'};}) { }
18 25959 elsif ($timeout) { }
55 26728 1029 if (IO::Poll::_poll($timeout, @poll) > 0)
58 22665 36802 if ($mode & 59)
59 0 22665 unless my $io = $self->{'io'}{$fd}
60 22665 0 if ++$i
62 49379 10088 unless $mode & 4 and my $io = $self->{'io'}{$fd}
63 10088 0 if ++$i
74 1 101666 unless my $t = $self->{'timers'}{$id}
75 73363 28303 unless $t->{'time'} <= $now
78 26978 1325 if ($t->{'recurring'}) { }
83 28303 0 if $t->{'cb'}
92 2362 903 unless ref $remove
111 1 11279 unless my $io = $self->{'io'}{fileno $handle}
113 11077 202 if $read
114 8667 2612 if $write
141 3 61053 unless eval { do { $self->$cb(@_); 1 } }