Branch Coverage

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

line%coveragebranch
32100TFif ($type =~ /^(?:line_forbidden|patterns|excludes|only|reject)$/) { }
50TFelsif ($type =~ /^(?:dictionary|expect|allow)$/) { }
42100TFunless ($maybe_bad =~ /^\Q$workspace_path\E/)
47100TFif ($maybe_bad =~ m[/\.git/]i)
5350TFif (open $fh, "<:encoding(UTF-8)", $file)
61100TFif ($length == 0) { }
64100TFunless ($buffer =~ /\R/)
77100TFdefined $nl ? :
85100TFif ($warning)
91100TFif ($content ne "")
9350TFif ($warning ne '') { }
50TFelsif ($line ne '') { }
99100TFif ($add_nl_at_eof)
108100TFif $eol_d_a
109100TFif $eol_a
110100TFif $eol_d
111100TFif (scalar @line_endings > 1)