Branch Coverage

File:/usr/local/share/perl/5.38.2/Capture/Tiny.pm
Coverage:36.7%

line%coveragebranch
1750TFunless eval {         do {         require PerlIO; "PerlIO"->can("get_layers") } }
10750TFunless open $_[0], $_[1]
11350TFunless close $_[0]
12050TFunless (defined fileno STDIN)
1220TFif (defined $dup{'stdin'}) { }
1320TFif $] >= "5.008"
13450TFunless (defined fileno STDOUT)
1360TFif (defined $dup{'stdout'}) { }
1460TFif $] >= "5.008"
14850TFunless (defined fileno STDERR)
1500TFif (defined $dup{'stderr'}) { }
1600TFif $] >= "5.008"
1710TFunless ($proxy_count{$p})
1730TFunless $] < "5.008"
182100TFif $h eq "stdin" and not $IS_WIN32
18350TF$h eq 'stdin' ? :
19350TFif defined $handles->{'stdin'}
19450TFif defined $handles->{'stdout'}
19550TFif defined $handles->{'stderr'}
2190TFif ($IS_WIN32) { }
2420TFif (not defined $pid) { }
0TFelsif ($pid == 0) { }
2590TFif @_ == grep({-f $_;} @_)
2600TFif $have_usleep
2690TFdefined $ENV{'PERL_CAPTURE_TINY_TIMEOUT'} ? :
2710TFunless _files_exist(@files)
2770TFif ($IS_WIN32) { }
29450TFunless seek $fh, $pos, 0
29650TFdefined $text ? :
30650TF$do_stdout ? :
50TF$do_stderr ? :
30750TFunless @opts % 2 == 0
3120TFunless ref $fh eq "GLOB" or &blessed($fh) and $fh->isa("IO::Seekable")
32850TFif tied *STDOUT and &reftype(tied *STDOUT) eq "GLOB"
33050TFif tied *STDERR and &reftype(tied *STDERR) eq "GLOB"
33750TFif grep {$_ eq "scalar";} @{$layers{"stdin"};}
33950TFif $do_stdout and grep {$_ eq "scalar";} @{$layers{"stdout"};}
34150TFif $do_stderr || $do_merge and grep {$_ eq "scalar";} @{$layers{"stderr"};}
34250TFif tied *STDIN and $] >= "5.008"
34450TFif $do_stdout and tied *STDOUT and $] >= "5.008"
34650TFif $do_stderr || $do_merge and tied *STDERR and $] >= "5.008"
35350TFif $proxy_std{'stdout'}
35450TFif $proxy_std{'stderr'}
36150TFunless seek $stash->{'capture'}{$_}, 0, 2
36450TFif $do_tee
36650TFif $do_tee
36850TFif $do_merge
37550TFif $localize{'stdin'}
37750TFif $do_stdout
37850TFif $do_stderr
38550TFif $do_stdout
38650TFif $do_stderr
39450TFif $do_stdout
39550TFif $do_stderr
39850TFif $do_tee
40250TFif ($orig_pid == $$ and defined wantarray || $do_tee && keys %localize)
4090TFif $do_stdout and $do_tee and $localize{'stdout'}
4110TFif $do_stderr and $do_tee and $localize{'stderr'}
414100TFif $inner_error
41550TFif $outer_error
41750TFunless defined wantarray
41950TFif $do_stdout
42050TFif $do_stderr and not $do_merge
42250TFwantarray ? :