Branch Coverage

File:lib/CheckSpelling/CleanupFiles.pm
Coverage:61.8%

line%coveragebranch
31100TFif ($type =~ /^(?:line_forbidden|patterns|excludes|only|reject)$/) { }
50TFelsif ($type =~ /^(?:dictionary|expect|allow)$/) { }
41100TFunless ($maybe_bad =~ /^\Q$workspace_path\E/)
46100TFif ($maybe_bad =~ m[/\.git/]i)
5250TFif (open $fh, "<:encoding(UTF-8)", $file)
60100TFif ($length == 0) { }
6350TFunless ($buffer =~ /\R/)
77100TFdefined $nl ? :
85100TFif ($warning)
9150TFif ($content ne "")
930TFif ($warning ne '') { }
0TFelsif ($line ne '') { }
9950TFif ($add_nl_at_eof)
10850TFif $eol_d_a
10950TFif $eol_a
11050TFif $eol_d
11150TFif (scalar @line_endings > 1)