Branch Coverage

lib/IOMux.pm
Criterion Covered Total %
branch 13 40 32.5


line true false branch
43 0 12 unless UNIVERSAL::isa($handler, 'IOMux::Handler')
54 0 4 unless 'IOMux::Open'->can('new')
57 4 0 if $conn
67 0 4 unless keys %$handlers
79 0 12 defined $timeout ? :
84 0 12 if $wait < 0.001
86 0 12 unless $self->one_go($wait, $heartbeat)
108 32 13 unless @_
109 13 0 defined $_[0] ? :
116 0 13 unless my $obj = delete $self->{'IM_handlers'}{$fileno}
122 0 13 if (my $timeout = delete $self->{'IM_timeouts'}{$fileno})
124 0 0 if $self->{'IM_next_timeout'} == $timeout
136 0 0 if $old == $when
139 0 0 if ($old)
142 0 0 if $next and $next == $old
145 0 0 if ($when)
146 0 0 if not $next or $next > $when
157 0 12 if ($next and $now < $next)
160 0 0 if $self->{'IM_next_timeout'}
166 0 0 unless $when <= $now