Condition Coverage

blib/lib/AnyEvent/Fork/Pool.pm
Criterion Covered Total %
condition 16 45 35.5


and 3 conditions

line !l l&&!r l&&r condition
305 0 0 19 @_ == 3 and $_[0] eq $magic0
0 0 19 @_ == 3 and $_[0] eq $magic0 and $_[2] eq $magic1
339 1 0 8 $nidle < $idle || @queue and @pool < $max
372 11 0 0 $nidle < $idle and @pool < $max

or 2 conditions

line l !l condition
264 0 1 $arg{'max'} || 4
270 0 1 $arg{'idle'} || 0
0 1 $arg{'load'} || 2
0 1 $arg{'start'} || 0.1
0 1 $arg{'stop'} || 10
0 1 $arg{'on_event'} || sub { }

or 3 conditions

line l !l&&r !l&&!r condition
339 0 8 1 $nidle < $idle || @queue
345 59 1 0 $start_w ||= &AE::timer($start, $start, sub { if ($nidle < $idle || @queue and @pool < $max) { &$start_worker(); &$scheduler(); } else { undef $start_w; } ; } )
355 0 0 0 $stop_w ||= &AE::timer($stop, $stop, sub { &$stop_worker($pool[0]) if $nidle; undef $stop_w if $nidle <= $idle; } )
383 30 0 0 --$$proc[0] or ++$nidle > $idle
478 0 0 0 $^O eq 'freebsd' or $^O eq 'netbsd'
0 0 0 $^O eq 'freebsd' or $^O eq 'netbsd' or $^O eq 'openbsd'
500 0 0 0 `sysctl -n hw.ncpu` * 1 || (@_ ? shift() : 1)