Branch Coverage

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


line true false branch
133 0 0 unless open SEARCHFILE, $_
136 0 0 unless defined $first_line
193 5 5 if (@_ == 0) { }
3 2 elsif (&Params::Util::_HASHLIKE($_[0])) { }
2 0 elsif (defined &Params::Util::_STRING($_[0])) { }
202 1 1 if (-d $path)
205 1 0 if -f $meta
207 2 0 if (-f $path)
213 2 0 if ($no_index)
228 10 398 unless (defined $root)
229 3 7 if ('File::Spec'->file_name_is_absolute($fullname)) { }
237 5 403 unless (defined $rule)
240 5 0 if (-f $meta)
242 5 0 if ($yaml and $$yaml{'no_index'})
249 0 408 unless $rule
252 90 318 'File::Spec'->file_name_is_absolute($fullname) ? :
258 16 392 if ($$rule{'directory'}{$relpath} || $$rule{'directory'}{$absname} and -d $absname)
261 2 390 if ($$rule{'file'}{$relpath} || $$rule{'file'}{$absname} and -f $absname)
279 2 8 $$param{'file'} ? :
282 8 2 $$param{'directory'} ? :