Condition Coverage

blib/lib/IO/CaptureOutput.pm
Criterion Covered Total %
condition 50 53 94.3


and 3 conditions

line !l l&&!r l&&r condition
32 4 75 17 $_ != \(undef) and not defined $$_
116 15 6 39 defined $output and defined $error
21 33 6 defined $output and defined $error and defined $output_file
39 1 5 defined $output and defined $error and defined $output_file and defined $error_file
34 3 2 defined $output and defined $error and defined $output_file and defined $error_file and $output == $error
4 0 2 defined $output and defined $error and defined $output_file and defined $error_file and $output == $error and $output != \(undef)
3 1 1 defined $output and defined $error and defined $output_file and defined $error_file and $output == $error and $output != \(undef) and $output_file ne $error_file
48 8 3 not defined $output || defined $error and defined $output_file
56 1 2 not defined $output || defined $error and defined $output_file and defined $error_file
9 1 1 not defined $output || defined $error and defined $output_file and defined $error_file and $output_file ne $error_file
155 2 0 110 defined fileno $orig_fh and not _is_wperl()
204 20 10 80 ref $capture_var and $newio_file
215 20 0 90 defined $newio_file and -e $newio_file

or 2 conditions

line l !l condition
40 20 38 defined $error && defined $output && $output == $error || !(defined $output || defined $error) || 0

or 3 conditions

line l !l&&r !l&&!r condition
29 44 4 10 defined $output or defined $error
49 10 46 2 not defined $output or $output != \(undef)
54 10 46 2 not defined $error or $error != \(undef)
116 44 4 11 defined $output || defined $error