Branch Coverage

lib/Git/Background.pm
Criterion Covered Total %
branch 42 44 95.4


line true false branch
43 1 22 if @_ > 2
48 7 14 if (@_ and ref $_[0] eq ref '' || defined &Scalar::Util::blessed($_[0]))
55 0 22 if @_ > 1
58 18 4 if (@_ and ref $_[0] eq ref {}) { }
66 1 19 if @_
68 6 13 if (defined $dir)
69 1 5 if exists $self->{'_dir'}
84 1 29 unless defined wantarray
87 19 10 if (@cmd and ref $cmd[-1] eq ref {}) { }
108 5 24 defined $config->{'_dir'} ? :
119 3 26 unless (defined $proc)
125 3 26 unless defined $proc
142 3 1 if (defined $args)
148 3 0 if ($line =~ s/ \A git \s version \s //msx)
162 25 26 unless (defined &Scalar::Util::blessed($self))
173 1 50 if (exists $args->{'dir'}) { }
5 45 elsif (exists $self->{'_dir'}) { }
184 16 35 if (exists $args->{'fatal'}) { }
193 20 31 if (exists $args->{'git'}) { }
195 18 2 defined &Scalar::Util::reftype($git) && &Scalar::Util::reftype($git) eq &Scalar::Util::reftype([]) ? :
204 1 1 @unknown > 1 ? :
2 49 if @unknown