Branch Coverage

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


line true false branch
12 1 14975 unless my $timer = $self->{'timers'}{$id}
13 3154 11821 if defined $after
36 1743 74211 unless $self->{'running'}
43 10 1 unless keys %{$$self{"timers"};} or keys %{$$self{"io"};}
47 75943 1 defined $min ? :
48 41253 34691 $timeout <= 0 ? :
51 37322 38622 if (keys %{$$self{'io'};}) { }
18 38604 elsif ($timeout) { }
55 36163 1159 if (IO::Poll::_poll($timeout, @poll) > 0)
58 29129 51121 if ($mode & 59)
59 0 29129 unless my $io = $self->{'io'}{$fd}
60 29129 0 if ++$i
62 67054 13196 unless $mode & 4 and my $io = $self->{'io'}{$fd}
63 13196 0 if ++$i
74 3 146281 unless my $t = $self->{'timers'}{$id}
75 104875 41406 unless $t->{'time'} <= $now
78 39957 1449 if ($t->{'recurring'}) { }
83 41406 0 if $t->{'cb'}
92 2699 1042 unless ref $remove
111 1 13958 unless my $io = $self->{'io'}{fileno $handle}
113 13714 244 if $read
114 11114 2844 if $write
141 3 83728 unless eval { do { $self->$cb(@_); 1 } }