Condition Coverage

blib/lib/Git/Repository/Command.pm
Criterion Covered Total %
condition 25 32 78.1


and 3 conditions

line !l l&&!r l&&r condition
36 160 2 28 -x $binary and not -d _
59 2 0 375 defined $ENV{'PATH'} && length $ENV{'PATH'}
82 10 15 24 defined $git and $type eq 'path-rel'
86 10 4 35 defined $git and -x $git
108 642 2 143 &blessed($_) && $_->isa('Git::Repository')
128 35 0 106 defined $work_tree and length $work_tree
140 395 25 0 exists $_->{'env'} and exists $_->{'env'}{'PATH'}
25 0 0 exists $_->{'env'} and exists $_->{'env'}{'PATH'} and $ENV{'PATH'} = $_->{'env'}{'PATH'}
195 313 8 7 @errput and not $self->options->{'quiet'}

or 2 conditions

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

or 3 conditions

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