Branch Coverage

blib/lib/Psh/OS.pm
Criterion Covered Total %
branch 2 66 3.0


line true false branch
8 0 1 if ($^O eq 'MSWin32') { }
11 0 0 if $@
15 0 1 if $@
23 0 0 unless ref *{$name;}{'CODE'} eq 'CODE'
24 0 0 unless (ref *{$name;}{'CODE'} eq 'CODE')
43 0 0 unless opendir DIR, $dir
50 0 0 unless -d $tmpdir and no_upwards($tmp)
58 0 0 if ($] >= 5.005) { }
74 0 0 unless $pattern
77 0 0 if (not $dir) { }
80 0 0 unless $already_absed
82 0 0 unless $dir
86 0 0 if ($pattern eq '~') { }
93 0 0 unless $pattern =~ /[*?]/
96 0 0 if ($pattern =~ m[^([^\*]+/)?\*\*/(.*)$]) { }
0 0 elsif ($pattern =~ m[/]) { }
105 0 0 if substr($pattern, 0, 2) eq '.*'
119 0 0 if substr($pattern, 0, 2) eq '.*'
121 0 0 unless opendir DIR, $dir
137 0 0 if @numbers == 1
143 0 0 if $numbers[$i] == $signalnum
156 0 0 if (defined $desc and $desc)
183 0 0 if $Psh::old_shell
184 0 0 if $_[0]
221 0 0 unless ($@)
226 0 0 if ($@) { }
228 0 0 unless ($@)
240 0 0 if ($handler_type == 0) { }
0 0 elsif ($handler_type == 3) { }
0 0 elsif ($handler_type == 1) { }
0 0 elsif ($handler_type == 2) { }
256 0 0 if ($cols and $rows and $cols > 0 and $rows > 0)
259 0 0 if ($Psh::term)