Branch Coverage

blib/lib/Mojo/Reactor/POE.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
30 1 6 unless my $timer = $$self{'timers'}{$id}
33 6 0 if $self->_session_exists
45 3 3 $POE++ ? :
59 5 7357 unless keys %{$$self{'timers'};} or keys %{$$self{'io'};}
62 47 7310 unless $$self{'running'}
71 0 10 unless defined $remove
72 5 5 if (ref $remove) { }
73 3 2 if (exists $$self{'io'}{fileno $remove})
76 3 0 if $self->_session_exists
80 4 1 if (exists $$self{'timers'}{$remove})
83 4 0 if $self->_session_exists
92 2 2 if ($self->_session_exists)
112 1 23 unless my $io = $$self{'io'}{fileno $handle}
143 3 30 if $recurring
157 1 8066 unless eval { do { $self->$cb(@_); 1 } }
162 6 8006 unless ($self->_session_exists)
191 0 668 unless defined $$self{'session_id'}
208 5 0 if $self
214 0 627 unless exists $$self{'timers'}{$id} and defined $$self{'timers'}{$id}{'time'}
227 0 4 unless exists $$self{'timers'}{$id} and defined $$self{'timers'}{$id}{'poe_id'}
238 0 6 unless exists $$self{'timers'}{$id} and defined $$self{'timers'}{$id}{'time'} and defined $$self{'timers'}{$id}{'poe_id'}
259 0 23 unless exists $$self{'io'}{$fd} and defined $$self{'io'}{$fd}{'handle'}
262 18 5 if ($$io{'read'}) { }
267 17 6 if ($$io{'write'}) { }
280 0 6 unless exists $$self{'io'}{$fd} and defined $$self{'io'}{$fd}{'handle'}
296 594 24 if (exists $$timer{'recurring'}) { }
312 6789 660 if ($mode == 0) { }
660 0 elsif ($mode == 1) { }