Condition Coverage

blib/lib/AnyEvent/Fork/Pool.pm
Criterion Covered Total %
condition 0 45 0.0


and 3 conditions

line !l l&&!r l&&r condition
311 0 0 0 @_ == 3 and $_[0] eq $magic0
0 0 0 @_ == 3 and $_[0] eq $magic0 and $_[2] eq $magic1
345 0 0 0 $nidle < $idle || @queue and @pool < $max
378 0 0 0 $nidle < $idle and @pool < $max

or 2 conditions

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

or 3 conditions

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