Branch Coverage

blib/lib/AnyEvent/Fork/Pool.pm
Criterion Covered Total %
branch 1 58 1.7


line true false branch
289 0 0 if $on_destroy
293 0 0 $arg{'async'} ? :
311 0 0 if (@_ == 3 and $_[0] eq $magic0 and $_[2] eq $magic1)
314 0 0 if $_[1] eq 'quit'
332 0 0 unless $$proc[0]
335 0 0 if defined $$proc[1]
345 0 0 if ($nidle < $idle || @queue and @pool < $max) { }
356 0 0 if $nidle
359 0 0 if $nidle <= $idle
365 0 0 if (@queue) { }
0 0 elsif ($shutdown) { }
367 0 0 unless @pool
371 0 0 if ($$proc[0] < $load) { }
373 0 0 unless ($$proc[0]++)
375 0 0 unless --$nidle
378 0 0 if $nidle < $idle and @pool < $max
389 0 0 unless --$$proc[0] or ++$nidle > $idle
393 0 0 if defined $$proc[1]
401 0 0 unless @pool >= $max
428 0 0 unless @pool
482 1 0 if ($^O eq 'linux') { }
0 0 elsif ($^O eq 'freebsd' or $^O eq 'netbsd' or $^O eq 'openbsd') { }
486 0 0 if (open my $fh, '<', '/proc/cpuinfo') { }
490 0 0 if (/^core id\s*:\s*(\d+)/u)
498 0 0 @_ ? :
500 0 0 wantarray ? :
506 0 0 wantarray ? :
510 0 0 @_ ? :
511 0 0 wantarray ? :