Branch Coverage

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

line%coveragebranch
23100TFif ($warning ne "")
3150TFunless CheckSpelling::Util::is_ignoring_event($code)
49100TFif ($type =~ /^(?:line_forbidden|patterns|excludes|only|reject)$/) { }
100TFelsif ($type =~ /^(?:dictionary|expect|allow)$/) { }
59100TFunless ($maybe_bad =~ /^\Q$workspace_path\E/)
64100TFif ($maybe_bad =~ m[/\.git/]i)
70100TFif (open $fh, "<:encoding(UTF-8)", $file)
78100TFif ($length == 0) { }
81100TFunless ($buffer =~ /\R/)
94100TFdefined $nl ? :
104100TFif ($content ne "")
107100TFif ($add_nl_at_eof)
116100TFif $eol_d_a
117100TFif $eol_a
118100TFif $eol_d
119100TFif (scalar @line_endings > 1)