Branch Coverage

blib/lib/IPC/Open3/Callback.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
46 2 2 $flush ? :
66 10 7 if ($pid)
98 1 6 if (defined $args_ref) { }
99 0 1 unless ref $args_ref eq 'HASH'
119 11 1 unless ($in_read)
123 11 1 unless ($out_write)
127 12 0 unless ($err_write)
141 10 1 if (ref $command[-1] eq 'HASH')
150 2 9 if ($options->{'buffer_output'} or $self->get_buffer_output)
171 0 19 if ($self->get_input_buffer)
178 0 28 if (not defined $bytes_read || $!{'ECONNRESET'}) { }
19 9 elsif (not defined $bytes_read or $bytes_read == 0) { }
187 9 0 if ($out_fh and $fh == $out_fh) { }
0 0 elsif ($err_fh and $fh == $err_fh) { }
214 1 11 $in_handle ? :
1 11 $out_handle ? :
0 12 $err_handle ? :
219 0 12 $^O =~ /MSWin32/ ? :
230 0 11 unless ref $command_ref eq 'ARRAY'
244 10 10 if (not defined $pid) { }
0 10 elsif (not $pid =~ /^\d+$/) { }
261 0 0 unless ($in_read)
265 0 0 unless ($out_write)
269 0 0 unless ($err_write)
290 9 20 unless defined $callback
293 16 4 unless (defined $buffer_ref)