Branch Coverage

blib/lib/Git/ObjectStore.pm
Criterion Covered Total %
branch 42 62 67.7


line true false branch
26 6 0 if (defined $args{$arg}) { }
34 1 8 if (defined $args{$arg})
39 0 1 if ($self->{'writer'} and $args{'goto'})
46 1 2 unless (-e $repodir . '/config')
47 1 0 if ($self->{'writer'}) { }
56 1 2 if ($self->{'writer'}) { }
60 1 0 unless (defined $branch)
72 0 1 unless defined $branch
97 0 2 if (defined $args{'goto'}) { }
100 0 0 unless defined $commit
151 2 4 if ($self->{'writer'}) { }
153 1 1 if (defined $entry) { }
160 4 0 if (defined $entry) { }
175 2 0 if ($self->{'writer'}) { }
198 0 2 unless $self->{'writer'}
201 1 1 if (defined(my $entry = $self->{'gitindex'}->find($filename)))
220 0 7 unless $self->{'writer'}
234 0 2 unless $self->{'writer'}
247 0 3 unless $self->{'writer'}
249 3 0 unless (defined $msg)
263 1 2 if ($tree->id eq $parent->tree->id)
289 0 2 unless $self->{'writer'}
308 2 1 if ($self->create_commit($msg))
326 0 4 if $self->{'writer'}
328 2 2 if ($path eq '') { }
336 2 0 if (defined $entry) { }
358 15 11 if ($entry->type == 'Git::Raw::Object'->TREE) { }
365 0 11 if ($no_content) { }
388 0 2 unless defined $old_commit
408 4 6 if ($delta->status eq 'deleted') { }
411 3 3 if ($no_content) { }