Branch Coverage

blib/lib/Git/Wrapper.pm
Criterion Covered Total %
branch 74 108 68.5


line true false branch
37 7 2 if (scalar @_ == 1) { }
39 2 5 if (ref $arg eq 'HASH') { }
2 3 elsif (&blessed($arg)) { }
1 2 elsif (not ref $arg) { }
47 0 2 if &blessed($dir)
53 2 5 unless $self->dir
62 7 49 if $meth eq 'DESTROY'
75 0 0 if @_
94 181 0 unless $cmd eq 'clone'
96 0 181 if $DEBUG
114 0 181 if $DEBUG
122 1 180 if ($? and not $stupid_status)
133 0 180 if ($self->{'autoprint'})
145 0 1 ref $_[0] eq 'HASH' ? :
156 2 179 if defined $self->{'git_binary'}
158 0 179 defined $ENV{'GIT_WRAPPER_GIT'} ? :
169 1 11 if (grep /format=/, @_)
177 5 6 ref $_[0] eq 'HASH' ? :
182 11 0 if $self->supports_log_no_abbrev_commit
184 0 11 if $self->supports_log_no_expand_tabs
193 1 13 unless $line =~ /^commit (\S+)/
204 0 13 if $line
206 13 0 if @out
220 3 10 if ($raw)
232 3 0 if @modifications
237 10 3 unless @out
238 0 3 unless $out[0] =~ /^commit/
249 0 39 unless $self->supports_status_porcelain
252 0 39 ref $_[0] eq 'HASH' ? :
259 13 26 unless @out
264 0 31 if ($STATUS_CONFLICTS{"$x$y"}) { }
10 21 elsif ($x eq '?' and $y eq '?') { }
271 10 11 if $y ne ' '
273 11 10 if $x ne ' '
284 0 1 if &versioncmp(scalar $self->version, '1.6.1') == -1
292 0 12 &versioncmp(scalar $self->version, '1.7.6') == -1 ? :
299 11 0 if &versioncmp(scalar $self->version, '2.9') == -1
307 0 2 if &versioncmp(scalar $self->version, '1.6.2') == -1
315 0 41 if &versioncmp(scalar $self->version, '1.7') == -1
342 9 128 length $name == 1 ? :
348 5 32 length $name == 1 ? :
100 37 $val eq '1' ? :
355 0 194 if ref $cmd
361 85 74 if (ref $_ eq 'HASH') { }
2 72 elsif (&blessed($_)) { }
0 72 elsif (ref $_) { }
363 4 81 if exists $_->{'-STDIN'}
367 0 137 if $val eq '0'
369 10 127 if ($name =~ s/^-//) { }
373 0 127 if _win32_multiline_commit_msg($cmd, $name, $val)
396 127 0 if $^O ne 'MSWin32'
397 0 0 if $cmd ne 'commit'
398 0 0 if $name ne 'm' and $name ne 'message'
399 0 0 unless $val =~ /\n/