Branch Coverage

blib/lib/Git/Repository/Command.pm
Criterion Covered Total %
branch 56 58 96.5


line true false branch
30 0 38 $^O eq 'cygwin' ? :
0 38 $^O eq 'MSWin32' ? :
36 28 162 if -x $binary and not -d _
59 366 2 defined $ENV{'PATH'} && length $ENV{'PATH'} ? :
60 296 6 grep((!'File::Spec'->file_name_is_absolute($_)), 'File::Spec'->path) ? :
63 3 'File::Spec'->file_name_is_absolute($binary) ? :
302 66 ('File::Spec'->splitpath($binary))[2] eq $binary ? :
76 319 49 if exists $binary{$type}{$key}{$binary}{$args}
79 36 13 $type =~ /^path/ ? :
82 24 25 if defined $git and $type eq 'path-rel'
86 14 35 unless defined $git and -x $git
95 2 31 $type eq 'path' ? :
33 2 $version =~ /^git version \d/ ? :
108 143 614 &blessed($_) && $_->isa('Git::Repository') ? :
173 757 ref $_ eq 'HASH' ? :
114 1 349 if @r > 1
121 141 208 if ($r)
128 106 35 if defined $work_tree and length $work_tree
134 106 35 if defined $work_tree
150 35 2044 s/^-// ? :
3 1314 /^!0$/ ? :
34 7 ref $_ ? :
154 64 705 exists $_->{'git'} ? :
158 2 62 ref $git_cmd ? :
64 285 defined $git_cmd ? :
162 7 342 unless defined $git
190 18 319 if ($self->options->{'fatal'}{$self->exit})
195 7 312 if (@errput and not $self->options->{'quiet'})
203 68 251 wantarray ? :