Branch Coverage

File:lib/CheckSpelling/GitSources.pm
Coverage:56.9%

line%coveragebranch
23100TFunless $source =~ m[^[^/]+/[^/]+$]
35100TFif defined $git_dir
3650TFif ($ENV{'PATH'} =~ /(.*)/)
39100TFif (-x "$maybe_git/git")
5850TFif $dir eq $parent
60100TFif defined $CheckSpelling::GitSources::git_roots{$dir}
62100TFif (-e $git_dir)
63100TFif (-d $git_dir)
6750TFif (-s $git_dir)
7150TFif ($git_dir_path =~ /^gitdir: (.*)$/)
8450TFunless defined $last_git_dir
88100TFunless (defined $CheckSpelling::GitSources::github_urls{$last_git_dir})
9650TFif (grep {/^origin$/;} @remotes) { }
0TFelsif (@remotes) { }
10350TFif ($origin)
10950TFif (defined $private_synthetic_sha)
1100TFif $rev eq $private_synthetic_sha
11350TFunless $branch
11650TFif ($git_dir) { }
12250TFif $remote_url eq "."
12350TFif ($remote_url) { }
0TFelsif ($ENV{'GITHUB_SERVER_URL'} ne '' and $ENV{'GITHUB_REPOSITORY'} ne '') { }
124100TFunless ($remote_url =~ m[^https?://])
1300TFunless $rev
1310TFunless $branch
13350TFif $remote_url
13450TFif ($url_base)
13550TFif ($CheckSpelling::GitSources::pull_base)
143100TFbasename($last_git_dir) eq '.git' ? :