Branch Coverage

blib/lib/IO/Pipe/Producer.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
46 9 18 if (scalar @_)
51 4 5 if (wantarray)
64 0 18 if (wantarray)
80 0 27 if (not defined $producer_sub or ref $producer_sub ne 'CODE')
93 12 15 if wantarray
96 27 0 if (defined($pid = fork)) { }
98 21 6 if ($pid) { }
106 9 12 if wantarray
109 9 12 if (wantarray)
123 3 3 if defined $stderr_pipe
124 3 3 if defined $stderr_pipe
127 0 6 if (not open(STDOUT, '>&', \${$stdout_pipe;})) { }
0 9 elsif (defined $stderr_pipe and not open(STDERR, '>&', \${$stderr_pipe;})) { }
151 3 3 if defined $stderr_pipe