Branch Coverage

blib/lib/IO/Pipe/Producer.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
46 15 39 if (scalar @_)
51 7 8 if (wantarray)
70 0 39 if (wantarray)
92 0 54 if (not defined $producer_sub or ref $producer_sub ne "CODE")
105 28 26 if wantarray
111 54 0 if (defined($pid = fork)) { }
113 45 9 if ($pid) { }
122 23 22 if wantarray
125 23 22 if (wantarray)
140 5 4 if defined $stderr_pipe
141 5 4 if defined $stderr_pipe
145 0 9 if (not open(STDOUT, '>&', \${$stdout_pipe;})) { }
0 13 elsif (defined $stderr_pipe and not open(STDERR, '>&', \${$stderr_pipe;})) { }
172 1 0 if (defined $stderr_pipe) { }
188 0 0 if (defined $stderr_pipe) { }
204 3 2 if ($issys and defined $raw_exit_code and $raw_exit_code != -1)
207 2 7 if (not defined $raw_exit_code or $raw_exit_code == -1)
209 1 1 if (defined $stderr_pipe)
220 5 4 if defined $stderr_pipe