Branch Coverage

blib/lib/File/LsColor.pm
Criterion Covered Total %
branch 20 60 33.3


line true false branch
307 0 3 if (ref $_[0] eq 'ARRAY') { }
319 0 3 if $file =~ /^\s+$/
334 0 3 if ($file =~ /^\s+(.+)/) { }
347 3 0 unless ($real_file =~ /\0/)
348 0 3 if -d $real_file
358 0 3 if (not defined $ext and $NO_STAT == 0)
359 0 0 if -l $real_file
360 0 0 if -x $real_file
361 0 0 if -d $real_file
362 0 0 if -S $real_file
363 0 0 if -p $real_file
364 0 0 if -b $real_file
365 0 0 if -c $real_file
371 0 0 if $real_file =~ m[/$]
383 0 3 unless (defined $ext)
387 0 3 if (exists $extracted_ls_colors->{$real_file}) { }
3 0 elsif (exists $extracted_ls_colors->{$ext}) { }
0 0 elsif ($IGNORE_CASE and $$extracted_ls_colors{lc $ext}) { }
391 2 1 if ($COLORIZE_PATH) { }
412 0 0 if ($COLORIZE_PATH) { }
415 0 0 exists $$extracted_ls_colors{basename($file)} ? :
421 0 0 exists $$extracted_ls_colors{basename($file)} ? :
426 0 3 wantarray ? :
436 4 0 if (@_)
485 1 4 if $IGNORE_CASE
491 4 1 if $table->{$ft}
492 0 1 if $$table{".$ft"}
501 1 0 $table->{$ext} ? :
549 0 0 $slack{uc $query} ? :
560 0 2 $dirname eq '.' ? :