Branch Coverage

lib/Git/Background.pm
Criterion Covered Total %
branch 54 56 96.4


line true false branch
45 1 25 if @_ > 2
49 7 17 if (@_ and !defined(&Scalar::Util::reftype($_[0])) || defined &Scalar::Util::blessed($_[0]))
66 1 24 if @_ > 1
68 21 3 if (@_) { }
69 1 20 if not defined &Scalar::Util::reftype($_[0]) or &Scalar::Util::reftype($_[0]) ne "HASH"
79 6 15 if (defined $dir)
80 1 5 if exists $self->{'_dir'}
97 1 31 unless defined wantarray
100 17 14 if (@cmd and defined &Scalar::Util::reftype($cmd[-1]) and &Scalar::Util::reftype($cmd[-1]) eq 'HASH') { }
128 4 27 unless ($ok)
129 4 0 if (defined $@ and $@ ne "")
134 4 27 unless $ok
144 5 22 defined $config->{'_dir'} ? :
154 3 24 unless (defined $proc)
160 3 24 unless defined $proc
176 5 1 if (defined $args)
177 2 3 if not defined &Scalar::Util::reftype($args) or &Scalar::Util::reftype($args) ne "HASH"
184 3 0 if ($line =~ s/ \A git \s version \s //msx)
198 26 28 unless (defined &Scalar::Util::blessed($self))
209 1 53 if (exists $args->{'dir'}) { }
5 48 elsif (exists $self->{'_dir'}) { }
220 14 40 if (exists $args->{'fatal'}) { }
16 24 elsif (exists $self->{'_fatal'}) { }
229 22 32 if (exists $args->{'git'}) { }
26 6 elsif (exists $self->{'_git'}) { }
233 20 2 defined &Scalar::Util::reftype($git) && &Scalar::Util::reftype($git) eq 'ARRAY' ? :
244 1 1 @unknown > 1 ? :
2 52 if @unknown