Branch Coverage

blib/lib/Git/Repository/Command.pm
Criterion Covered Total %
branch 56 60 93.3


line true false branch
30 0 28 $^O eq 'cygwin' ? :
0 28 $^O eq 'MSWin32' ? :
36 18 137 if -x $binary and not -d _
59 371 2 defined $ENV{'PATH'} && length $ENV{'PATH'} ? :
60 0 307 grep((!'File::Spec'->file_name_is_absolute($_)), 'File::Spec'->path) ? :
63 3 'File::Spec'->file_name_is_absolute($binary) ? :
307 66 ('File::Spec'->splitpath($binary))[2] eq $binary ? :
76 334 39 if exists $binary{$type}{$key}{$binary}{$args}
79 26 13 $type =~ /^path/ ? :
82 0 39 if defined $git and $type eq "path-rel"
86 14 25 unless defined $git and -x $git
95 16 7 $type eq 'path' ? :
23 2 $version =~ /^git version \d/ ? :
108 143 644 builtin::blessed($_) && $_->isa('Git::Repository') ? :
174 787 ref $_ eq 'HASH' ? :
114 1 354 if @r > 1
121 141 213 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 711 exists $_->{'git'} ? :
158 2 62 ref $git_cmd ? :
64 290 defined $git_cmd ? :
162 7 347 unless defined $git
180 1 341 exists $self->options->{'input_record_separator'} ? :
194 17 325 if ($self->options->{'fatal'}{$self->exit})
199 7 318 if (@errput and not $self->options->{'quiet'})
207 69 256 wantarray ? :