Branch Coverage

blib/lib/Git/ObjectStore.pm
Criterion Covered Total %
branch 44 68 64.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'}) { }
64 1 2 if ($self->{'writer'}) { }
75 0 1 if (defined $branch)
80 0 0 if ($@)
87 1 0 unless (defined $branch)
98 0 1 unless defined $branch
118 0 2 if (defined $args{'goto'}) { }
121 0 0 unless defined $commit
172 2 4 if ($self->{'writer'}) { }
174 1 1 if (defined $entry) { }
181 4 0 if (defined $entry) { }
196 2 0 if ($self->{'writer'}) { }
219 0 2 unless $self->{'writer'}
222 1 1 if (defined(my $entry = $self->{'gitindex'}->find($filename)))
241 0 7 unless $self->{'writer'}
255 0 2 unless $self->{'writer'}
268 0 3 unless $self->{'writer'}
270 3 0 unless (defined $msg)
284 1 2 if ($tree->id eq $parent->tree->id)
310 0 3 unless $self->{'writer'}
329 2 1 if ($self->create_commit($msg)) { }
1 0 elsif (defined $self->{'created_init_commit'}) { }
349 0 4 if $self->{'writer'}
351 2 2 if ($path eq '') { }
359 2 0 if (defined $entry) { }
381 15 11 if ($entry->type == 'Git::Raw::Object'->TREE) { }
388 0 11 if ($no_content) { }
411 0 2 unless defined $old_commit
431 4 6 if ($delta->status eq 'deleted') { }
434 3 3 if ($no_content) { }