Branch Coverage

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


line true false branch
22 3 3 $POE++ ? :
32 1 8 unless my $timer = $self->{'timers'}{$id}
33 2 6 if defined $after
36 8 0 if $self->_session_exists
44 5 6003 unless keys %{$$self{'timers'};} or keys %{$$self{'io'};}
47 56 5947 unless $self->{'running'}
56 0 11 unless defined $remove
57 5 6 if (ref $remove) { }
59 3 2 if (exists $self->{'io'}{$fileno})
62 3 0 if $self->_session_exists
66 5 1 if (exists $self->{'timers'}{$remove})
69 5 0 if $self->_session_exists
78 3 3 if ($self->_session_exists)
91 1 24 unless my $io = $self->{'io'}{$fileno}
133 1 6631 unless eval { do { $self->$cb(@_); 1 } }
138 9 6410 unless ($self->_session_exists)
167 0 433 unless defined $self->{'session_id'}
184 8 0 if $self
191 0 387 unless exists $self->{'timers'}{$id} and defined $self->{'timers'}{$id}{'time'}
204 0 5 unless exists $self->{'timers'}{$id} and defined $self->{'timers'}{$id}{'poe_id'}
216 0 8 unless exists $self->{'timers'}{$id} and defined $self->{'timers'}{$id}{'time'} and defined $self->{'timers'}{$id}{'poe_id'}
236 0 24 unless exists $self->{'io'}{$fd} and defined $self->{'io'}{$fd}{'handle'}
238 19 5 if ($io->{'read'}) { }
243 17 7 if ($io->{'write'}) { }
257 0 6 unless exists $self->{'io'}{$fd} and defined $self->{'io'}{$fd}{'handle'}
272 351 26 if ($timer->{'recurring'}) { }
288 5644 611 if ($mode == 0) { }
611 0 elsif ($mode == 1) { }