Branch Coverage

blib/lib/IO/Event/Emulate.pm
Criterion Covered Total %
branch 54 108 50.0


line true false branch
46 0 82 if $sdebug
47 2 80 if $unloop
53 0 80 if ($sdebug > 3)
68 0 80 if $sdebug
69 70 10 if ($nfound)
72 70 0 if ($rout)
74 90 85 unless vec $rout, ${*$ioe;}{'ie_fileno'}, 1
76 0 84 if ($ret and vec $wout, ${*$ioe;}{'ie_fileno'}, 1)
80 0 84 if ($ret and vec $eout, ${*$ioe;}{'ie_fileno'}, 1)
85 69 15 unless $nfound > 0
88 0 0 if ($wout)
90 0 0 unless vec $wout, ${*$ioe;}{'ie_fileno'}, 1
92 0 0 if ($ret and vec $eout, ${*$ioe;}{'ie_fileno'}, 1)
97 0 0 unless $nfound > 0
100 0 0 if ($eout)
102 0 0 unless vec $eout, ${*$ioe;}{'ie_fileno'}, 1
105 0 0 unless $nfound > 0
110 23 56 if $timer_timeout
113 0 2 unless ref $unloop
116 2 0 if @r == 1
146 0 172 if ($new) { }
152 0 172 unless $want_read{$fileno}
162 172 160 if ($new) { }
166 160 0 if (defined $fileno)
169 160 0 unless $want_write{$fileno}
211 0 0 unless @_
227 23 57 if (@timers)
228 23 0 if ($timers[0] > $t) { }
230 0 23 if $timeout < 0.01
242 0 13 if $sdebug
247 0 13 unless $$timer{'next'}
248 2 11 unless $$timer{'next'} eq $t
257 0 3 unless $param{'cb'}
258 0 3 if $param{'after'} and $param{'at'}
273 10 5 if ($$self{'invoked'}) { }
0 5 elsif ($$self{'at'}) { }
0 5 elsif ($$self{'after'}) { }
5 0 elsif ($$self{'interval'}) { }
274 10 0 if ($$self{'interval'}) { }
276 0 10 if ($$self{'hard'} and $$self{'next'})
291 15 0 if ($next) { }
321 4 7 if (reftype($$self{'cb'}) eq 'CODE') { }
7 0 elsif (reftype($$self{'cb'}) eq 'ARRAY') { }
398 0 1 unless $param{'cb'}
399 0 1 if $param{'after'} and $param{'at'}
411 56 1 unless %idlers
434 0 1 if ($$idler{'min'} and time - $$idler{'last_time'} < $$idler{'min'})
437 0 1 unless ($is_idle)
438 0 0 unless $$idler{'max'}
439 0 0 unless time - $$idler{'last_time'} > $$idler{'max'}
450 0 1 if (defined $$self{'reentrant'} and not $$self{'reentrant'} and $$self{'icount'})
454 1 0 if (defined $$self{'repeat'} and not $$self{'repeat'})
457 1 0 if (reftype($$self{'cb'}) eq 'CODE') { }
0 0 elsif (reftype($$self{'cb'}) eq 'ARRAY') { }