Branch Coverage

File:lib/CheckSpelling/SummaryTables.pm
Coverage:57.7%

line%coveragebranch
23100TFunless $source =~ m[^[^/]+/[^/]+$]
35100TFif defined $git_dir
3650TFif ($ENV{'PATH'} =~ /(.*)/)
39100TFif (-x "$maybe_git/git")
5150TFif $file =~ m[^https?://]
6050TFif $dir eq $parent
62100TFif defined $CheckSpelling::SummaryTables::git_roots{$dir}
6450TFif (-e $git_dir)
6550TFif (-d $git_dir)
690TFif (-s $git_dir)
730TFif ($git_dir_path =~ /^gitdir: (.*)$/)
8650TFunless defined $last_git_dir
91100TFif (defined $CheckSpelling::SummaryTables::github_urls{$last_git_dir}) { }
10150TFif (grep {/^origin$/;} @remotes) { }
0TFelsif (@remotes) { }
10850TFif ($origin)
11450TFif (defined $private_synthetic_sha)
1150TFif $rev eq $private_synthetic_sha
12150TFif ($remote_url and $remote_url ne '.') { }
0TFelsif ($ENV{'GITHUB_SERVER_URL'} ne '' and $ENV{'GITHUB_REPOSITORY'} ne '') { }
122100TFunless ($remote_url =~ m[^https?://])
1290TFunless $rev
13150TFif ($url_base)
13250TFif ($CheckSpelling::SummaryTables::pull_base)
13750TFif ($last_git_dir)
14150TFif $prefix =~ m[https?://]
15850TFif ($head_ref and $github_url and $github_repository and $event_file_path)
15950TFif (open $event_file_handle, "<", $event_file_path)
166100TFunless ($CheckSpelling::SummaryTables::pull_head and $CheckSpelling::SummaryTables::pull_base and $CheckSpelling::SummaryTables::pull_base ne $CheckSpelling::SummaryTables::pull_head)
173100TFunless /^(.+):(\d+):(\d+) \.\.\. (\d+),\s(Error|Warning|Notice)\s-\s(.+)\s\(([-a-z]+)\)$/
176100TFunless -e $table_file
183100TFunless @tables
19250TFif ($budget)
203100TFif ($budget and $budget < $cost)
21550TFif ($real_cost > $cost)
2170TFif ($budget and $budget < $real_cost)
222100TFif ($details_prefix ne "")
23050TFif ($budget)
235100TFif $need_suffix