Branch Coverage

blib/lib/File/Find/Rule/Perl.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
131 0 0 unless open SEARCHFILE, $_
134 0 0 unless defined $first_line
191 5 5 if (@_ == 0) { }
3 2 elsif (&Params::Util::_HASHLIKE($_[0])) { }
2 0 elsif (defined &Params::Util::_STRING($_[0])) { }
200 1 1 if (-d $path)
203 1 0 if -f $meta
205 2 0 if (-f $path)
211 2 0 if ($no_index)
226 10 358 unless (defined $root)
227 3 7 if ('File::Spec'->file_name_is_absolute($fullname)) { }
235 5 363 unless (defined $rule)
238 5 0 if (-f $meta)
240 5 0 if ($yaml and $$yaml{'no_index'})
247 0 368 unless $rule
250 74 294 'File::Spec'->file_name_is_absolute($fullname) ? :
256 8 360 if ($$rule{'directory'}{$relpath} || $$rule{'directory'}{$absname} and -d $absname)
259 2 358 if ($$rule{'file'}{$relpath} || $$rule{'file'}{$absname} and -f $absname)
277 2 8 $$param{'file'} ? :
280 8 2 $$param{'directory'} ? :