Condition Coverage

lib/IPC/Open3/Utils.pm
Criterion Covered Total %
condition 32 54 59.2


and 3 conditions

line !l l&&!r l&&r condition
65 0 47 0 exists $SIG{'PIPE'} && defined $SIG{'PIPE'}
72 0 0 2 defined $stdin and ref $stdin eq 'IO::Handle'
78 2 0 0 $current_sig_pipe and ref $current_sig_pipe eq 'CODE'
142 0 0 12 exists $arg_hr->{'_timeout_info'} and ref $arg_hr->{'_timeout_info'} eq 'HASH'
228 24 17 0 $is_stderr and $cur_line =~ /^open3:/
250 39 0 0 $is_open3_err and $arg_hr->{'stop_read_on_open3_err'}
258 2 27 0 $odd_errno == 0 and $! == 9
264 3 0 26 defined $stdin and ref $stdin eq 'IO::Handle'
3 1 25 defined $stdin and ref $stdin eq 'IO::Handle' and $stdin->opened
273 24 0 12 $arg_hr->{'timeout'} and defined $original_alarm
286 29 0 0 $is_open3_err and $open3_err_is_exec
29 0 0 $is_open3_err and $open3_err_is_exec and $? != -1

or 2 conditions

line l !l condition
37 3 44 $arg_hr->{'ignore_handle'} ||= ''
121 0 36 local $SIG{'ALRM'} ||= ''
204 0 36 $arg_hr->{'read_length_bytes'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
290 0 1 28 $is_open3_err or not $return_bool
1 3 25 $is_open3_err or not $return_bool or not child_error_ok($?)
304 1 17 0 !defined($cmd[-1]) || ref $cmd[-1]
305 1 7 10 !defined($cmd[-1]) || ref $cmd[-1]