Branch Coverage

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

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}
6250TFif (-e $git_dir)
6350TFif (-d $git_dir)
670TFif (-s $git_dir)
710TFif ($git_dir_path =~ /^gitdir: (.*)$/)
8450TFunless defined $last_git_dir
88100TFif (defined $CheckSpelling::GitSources::github_urls{$last_git_dir}) { }
9850TFif (grep {/^origin$/;} @remotes) { }
0TFelsif (@remotes) { }
10550TFif ($origin)
11150TFif (defined $private_synthetic_sha)
1120TFif $rev eq $private_synthetic_sha
11850TFif $remote_url eq "."
11950TFif ($remote_url) { }
0TFelsif ($ENV{'GITHUB_SERVER_URL'} ne '' and $ENV{'GITHUB_REPOSITORY'} ne '') { }
120100TFunless ($remote_url =~ m[^https?://])
1270TFunless $rev
12950TFif ($url_base)
13050TFif ($CheckSpelling::GitSources::pull_base)
13550TFif ($last_git_dir)