Condition Coverage

blib/lib/Capture/Tiny.pm
Criterion Covered Total %
condition 53 75 70.6


and 3 conditions

line !l l&&!r l&&r condition
182 2088336 0 1044168 $h eq 'stdin' and not $IS_WIN32
270 72078566 0 0 $timeout and time - $start > $timeout
312 0 0 10 &blessed($fh) and $fh->isa('IO::Seekable')
328 889368 47760 107040 tied *STDOUT and &reftype(tied *STDOUT) eq 'GLOB'
330 889368 47760 107040 tied *STDERR and &reftype(tied *STDERR) eq 'GLOB'
339 117871 872777 53520 $do_stdout and grep {$_ eq 'scalar';} @{$layers{'stdout'};}
341 126076 864572 53520 $do_stderr || $do_merge and grep {$_ eq 'scalar';} @{$layers{'stderr'};}
342 797268 0 246900 tied *STDIN and $] >= 5.008
344 117871 771497 154800 $do_stdout and tied *STDOUT
889368 0 154800 $do_stdout and tied *STDOUT and $] >= 5.008
346 126076 763292 154800 $do_stderr || $do_merge and tied *STDERR
889368 0 154800 $do_stderr || $do_merge and tied *STDERR and $] >= 5.008
402 0 1037603 0 $orig_pid == $$ and defined wantarray || $do_tee && keys %localize
409 117461 730183 189956 $do_stdout and $do_tee
847644 189956 0 $do_stdout and $do_tee and $localize{'stdout'}
411 125666 733478 178456 $do_stderr and $do_tee
859144 178456 0 $do_stderr and $do_tee and $localize{'stderr'}
420 125666 96711 815222 $do_stderr and not $do_merge

or 3 conditions

line l !l&&r !l&&!r condition
270 218911 0 72078566 _files_exist(@files) or $timeout and time - $start > $timeout
282 0 0 0 wait == -1 or time - $start > 30
312 0 10 0 ref $fh eq 'GLOB' or &blessed($fh) and $fh->isa('IO::Seekable')
341 918092 0 126076 $do_stderr || $do_merge
346 918092 0 126076 $do_stderr || $do_merge
360 10 1843148 0 $stash->{'capture'}{$_} ||= 'File::Temp'->new
402 1037600 0 3 defined wantarray || $do_tee && keys %localize