Branch Coverage

blib/lib/AnyEvent/Fork/Pool.pm
Criterion Covered Total %
branch 27 58 46.5


line true false branch
283 1 0 if $on_destroy
287 0 1 $arg{'async'} ? :
305 19 0 if (@_ == 3 and $_[0] eq $magic0 and $_[2] eq $magic1)
308 19 0 if $_[1] eq 'quit'
326 0 19 unless $$proc[0]
329 11 8 if defined $$proc[1]
339 8 1 if ($nidle < $idle || @queue and @pool < $max) { }
350 0 0 if $nidle
353 0 0 if $nidle <= $idle
359 63 6 if (@queue) { }
6 0 elsif ($shutdown) { }
361 2 88 unless @pool
365 30 60 if ($$proc[0] < $load) { }
367 11 19 unless ($$proc[0]++)
369 11 0 unless --$nidle
372 0 11 if $nidle < $idle and @pool < $max
383 0 30 unless --$$proc[0] or ++$nidle > $idle
387 8 22 if defined $$proc[1]
395 60 0 unless @pool >= $max
424 1 29 unless @pool
478 2 0 if ($^O eq 'linux') { }
0 0 elsif ($^O eq 'freebsd' or $^O eq 'netbsd' or $^O eq 'openbsd') { }
482 0 0 if (open my $fh, '<', '/proc/cpuinfo') { }
486 0 0 if (/^core id\s*:\s*(\d+)/u)
494 0 0 @_ ? :
496 0 0 wantarray ? :
502 0 0 wantarray ? :
506 0 0 @_ ? :
507 0 0 wantarray ? :