Branch Coverage

blib/lib/Socket/More/Resolver.pm
Criterion Covered Total %
branch 70 130 53.8


line true false branch
66 1 0 unless (@pairs)
69 0 1 if $pool_max <= 0
94 0 1 if ($options{'prefork'})
106 0 0 if (ref $_ eq "CODE")
109 0 0 if (ref $_ eq 'ARRAY') { }
118 0 1 if ($options{'no_loop'}) { }
126 0 3 if (%{$_ . '::';})
128 0 0 if $@
133 0 1 if $sub
136 0 1 if ($options{'prefork'})
176 1 11 if ($$worker[6]) { }
177 0 1 if ($$worker[0]) { }
185 1 0 if @{$$worker[5]}
192 2 9 if ($$worker[0]) { }
206 1 1 if defined $fallback
212 1 0 if ($busy_count < @pairs - 1) { }
221 0 0 if $robin >= @pairs
237 22 0 unless $Shared
239 0 22 $w ? :
243 97 35 unless $$_[0]
244 24 11 if $$_[6]
245 2 9 unless @{$$_[5]}
260 1 8 if ($$req[0] == 2) { }
2 6 elsif ($$req[0] == 0) { }
2 4 elsif ($$req[0] == 1) { }
0 4 elsif ($$req[0] == 3) { }
4 0 elsif ($$req[0] == 4) { }
275 0 2 if (ref $$req[2] eq 'ARRAY') { }
313 5 17 if $redo
326 9 0 if (ref $fd_or_struct) { }
352 2 7 if ($cmd == 0) { }
2 5 elsif ($cmd == 1) { }
1 4 elsif ($cmd == 2) { }
0 4 elsif ($cmd == 3) { }
4 0 elsif ($cmd == 4) { }
355 0 2 if ($res[0] and $$entry['4']) { }
2 0 elsif (not $res[0] and $$entry[3]) { }
363 0 42 if (ref $$entry[2] eq 'ARRAY') { }
394 0 2 if ($error and $$entry['4']) { }
2 0 elsif (not $error and $$entry[3]) { }
432 20 0 unless $_ > 0
437 0 0 if ($pairs[$windex][0] == $_)
443 0 0 if ($index > 0) { }
447 0 0 if (@{$pairs[$index][5]})
458 0 9 if $Shared
467 34 98 if $$_[0]
472 5 17 if ($count > 0)
474 9 21 if ($$_[0] and vec $bits, fileno $$_[1], 1)
483 2 9 if (@_)
490 0 2 if (ref $hints eq 'ARRAY') { }
506 2 0 unless $Shared
507 0 2 if $enable_shrink
517 2 0 if (@_)
524 2 0 unless $Shared
525 0 2 if $enable_shrink
541 0 0 unless $$worker[0]
556 0 0 unless $$worker[0]
576 0 4 if ($res == $tpid) { }
0 4 elsif ($res == -1 and $! == 10) { }
611 1 1 if $$worker[0]
614 1 0 if ($pid) { }
643 0 0 if $_ == $template_worker
644 0 0 if @{$$_[5]}
645 0 0 unless $$_[0]
670 0 0 if ($res == $tpid) { }