Branch Coverage

blib/lib/Socket/More/Resolver/Worker.pm
Criterion Covered Total %
branch 46 82 56.1


line true false branch
5 2 0 unless (caller)
32 2 2 if (/--in/)
36 2 0 if (/--out/)
42 0 2 if DEBUG()
43 0 2 if DEBUG()
47 0 2 unless open my $in, "<&=$in_fds[0]"
48 0 2 unless open my $out, ">&=$out_fds[0]"
52 0 2 if DEBUG()
56 0 10 if DEBUG()
66 0 10 if DEBUG()
69 2 8 if ($cmd == CMD_SPAWN()) { }
2 6 elsif ($cmd == CMD_GAI()) { }
2 4 elsif ($cmd == CMD_GNI()) { }
0 4 elsif ($cmd == CMD_KILL()) { }
4 0 elsif ($cmd == CMD_REAP()) { }
72 1 1 if ($pid) { }
75 0 1 if DEBUG()
82 0 1 if DEBUG()
87 0 1 if DEBUG()
88 0 1 unless open $in, "<&=$in_fd"
89 0 1 unless open $out, ">&=$out_fd"
101 0 2 if DEBUG()
105 0 2 if ($use_core) { }
109 0 0 if ($rc) { }
123 0 2 if DEBUG()
125 0 2 unless (defined $rc)
134 0 2 if DEBUG()
138 0 2 if DEBUG()
140 0 2 if ($use_core) { }
149 0 2 if DEBUG()
150 0 2 if DEBUG()
151 0 2 if DEBUG()
153 2 0 if (defined $rc) { }
172 0 4 if DEBUG()
176 2 18 if ($_) { }
185 0 4 if DEBUG()
193 0 9 if DEBUG()
194 0 9 unless syswrite $out, unpack("H*", $return_out) . "\n"
195 0 9 if DEBUG()
197 0 9 unless $run
200 0 2 if DEBUG()