Condition Coverage

blib/lib/Git/Repository/Command.pm
Criterion Covered Total %
condition 24 32 75.0


and 3 conditions

line !l l&&!r l&&r condition
36 135 2 18 -x $binary and not -d _
59 2 0 371 defined $ENV{'PATH'} && length $ENV{'PATH'}
82 10 29 0 defined $git and $type eq "path-rel"
86 10 4 25 defined $git and -x $git
108 642 2 143 builtin::blessed($_) && $_->isa('Git::Repository')
128 35 0 106 defined $work_tree and length $work_tree
140 396 25 0 exists $_->{'env'} and exists $_->{'env'}{'PATH'}
25 0 0 exists $_->{'env'} and exists $_->{'env'}{'PATH'} and $ENV{'PATH'} = $_->{'env'}{'PATH'}
199 310 8 7 @errput and not $self->options->{'quiet'}

or 2 conditions

line l !l condition
91 25 0 do { local $/ = "\n"; $cmd->stdout->getline } || ''

or 3 conditions

line l !l&&r !l&&!r condition
195 12 5 0 join("\n", @errput) || 'fatal: unknown git error, exit status ' . $self->exit