Branch Coverage

blib/lib/AnyEvent/Git/Wrapper.pm
Criterion Covered Total %
branch 58 76 76.3


line true false branch
24 12 3 if (scalar @_ == 1) { }
27 2 10 if (ref $arg eq 'HASH') { }
2 8 elsif (&blessed($arg)) { }
6 2 elsif (not ref $arg) { }
35 0 3 if &blessed($dir)
49 30 132 if (ref $_[-1] eq 'CODE') { }
27 105 elsif (eval { do { $_[-1]->isa('AnyEvent::CondVar') } }) { }
66 11 46 if ref $_[-1] eq 'CODE'
91 1 56 if ($exit || $signal and not $stupid_status) { }
108 11 46 $customize ? :
112 57 0 unless $cmd eq 'clone'
116 0 57 $^O eq 'MSWin32' ? :
132 0 4 if (ref $_[-1] eq 'CODE') { }
2 2 elsif (eval { do { $_[-1]->isa('AnyEvent::CondVar') } }) { }
146 0 2 ref $_[0] eq 'HASH' ? :
156 0 1 if ($STATUS_CONFLICTS{"$x$y"}) { }
0 1 elsif ($x eq '?' and $y eq '?') { }
166 0 1 if $y ne ' '
168 1 0 if $x ne ' '
184 0 22 if (ref $_[-1] eq 'CODE') { }
11 11 elsif (eval { do { $_[-1]->isa('AnyEvent::CondVar') } }) { }
199 1 10 if (ref $_[-1] eq 'CODE')
204 3 8 ref $_[0] eq 'HASH' ? :
207 11 0 if $self->supports_log_no_abbrev_commit
216 14 0 if (my $line = shift @$out)
218 1 13 unless ($line =~ /^commit (\S+)/)
234 0 13 if ($line)
240 13 0 if @$out
251 1 12 if ($raw)
259 1 0 if @modifications
262 2 11 if ($cb) { }
272 3 74 if $line =~ /^commit (\S+)/ and @$out > 1
277 0 11 if $@
294 0 58 if (ref $_[-1] eq 'CODE') { }
10 48 elsif (eval { do { $_[-1]->isa('AnyEvent::CondVar') } }) { }
305 2 1 if ($self->{'ae_cache_version'} and $self->{'ae_version'})
311 2 8 if ($self->{'ae_cache_version'} and $self->{'ae_version'}) { }
319 0 8 if ($@) { }