Branch Coverage

blib/lib/File/SearchPath.pm
Criterion Covered Total %
branch 35 46 76.0


line true false branch
128 1 8 if (scalar @_ == 1) { }
148 4 2 unless (exists $options{'exe'} or exists $options{'dir'})
150 0 4 $options{'env'} eq 'PATH' ? :
153 0 8 if $options{'exe'} and $options{'dir'}
159 1 8 if ('File::Spec'->file_name_is_absolute($file))
160 1 0 _file_ok($file, $options{'exe'}, $options{'dir'}) ? :
175 0 15 unless $d
179 1 14 if ($options{'dir'}) { }
186 7 8 unless _file_ok($testfile, $options{'exe'}, $options{'dir'})
192 4 4 unless wantarray
197 2 6 if (wantarray) { }
234 0 1 unless (defined $var or defined $contents)
241 7 1 if (defined $var)
243 0 7 unless exists $ENV{$var}
246 0 7 unless defined $ENV{$var}
254 0 8 $@ ? :
256 1 7 if (not $use_env_path or defined $contents) { }
258 1 0 defined $contents ? :
292 0 16 if $testexe and $testdir
294 5 11 unless -e $testfile
295 0 11 unless -r $testfile
297 2 9 if ($testdir) { }
2 7 elsif ($testexe) { }