Branch Coverage

blib/lib/VCS/Which/Plugin/Git.pm
Criterion Covered Total %
branch 10 68 14.7


line true false branch
30 5 1 if defined $self->_installed
33 5 1 unless -x "$path/$exe"
44 0 21 if (-f $dir)
48 1 20 unless -d $dir
54 0 111 if (-d "$current_dir/$meta")
62 20 91 if $current_dir eq $current_dir->parent
75 0 0 unless -d $dir
80 0 0 $ans =~ /nothing \s to \s commit/msx ? :
88 0 0 unless -e $dir
99 0 0 unless -e $dir
110 0 0 unless my $repo_dir = path($self->_base)
114 0 0 if (-f $file and $cwd ne $repo_dir)
119 0 0 if $ENV{'VERBOSE'}
123 0 0 if ($revision and $revision =~ /^-?\d+$|[^0-9a-fA-F]/msx) { }
0 0 elsif (not defined $revision) { }
125 0 0 if ($VCS::Which::Plugin::Git::EVAL_ERROR)
131 0 0 $revision =~ /^[-]?\d+$/msx && $revs[$revision] ? :
136 0 0 if $ENV{'VERBOSE'}
146 0 0 if (defined $args[0] and -d $args[0] and $args[0] =~ m[^/])
159 0 0 if ($raw =~ /^commit / and $line) { }
207 0 0 if $conflicts
216 0 0 if ($VCS::Which::Plugin::Git::EVAL_ERROR)
230 0 0 if (-f $dir)
233 0 0 -f $dir ? :
239 0 0 if (@both > 1)
246 0 0 if (@modified > 1)
253 0 0 if (@added > 1)
260 0 0 if (@committed > 1)
266 0 0 if (@untracked > 1)
268 0 0 if ($untracked =~ s/^\s+[(]use \s+ "git \s+ add \s+ [^"]+" \s+ [^)]+\)\n\n//msx) { }
275 0 0 if ($untracked =~ /^[#]/msx) { }
283 0 0 if ($status =~ / You \s+ have \s+ unmerged \s+ paths[.]$ | All \s+ conflicts \s+ fixed \s+ but \s+ you \s+ are \s+ still \s+ merging[.]$ /msx)
297 0 0 if (-f $dir)
300 0 0 -f $dir ? :