Branch Coverage

blib/lib/Git/ObjectStore.pm
Criterion Covered Total %
branch 43 64 67.1


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'}) { }
73 1 0 unless (defined $branch)
85 0 1 unless defined $branch
105 0 2 if (defined $args{'goto'}) { }
108 0 0 unless defined $commit
159 2 4 if ($self->{'writer'}) { }
161 1 1 if (defined $entry) { }
168 4 0 if (defined $entry) { }
183 2 0 if ($self->{'writer'}) { }
206 0 2 unless $self->{'writer'}
209 1 1 if (defined(my $entry = $self->{'gitindex'}->find($filename)))
228 0 7 unless $self->{'writer'}
242 0 2 unless $self->{'writer'}
255 0 3 unless $self->{'writer'}
257 3 0 unless (defined $msg)
271 1 2 if ($tree->id eq $parent->tree->id)
297 0 3 unless $self->{'writer'}
316 2 1 if ($self->create_commit($msg)) { }
1 0 elsif (defined $self->{'created_init_commit'}) { }
336 0 4 if $self->{'writer'}
338 2 2 if ($path eq '') { }
346 2 0 if (defined $entry) { }
368 15 11 if ($entry->type == 'Git::Raw::Object'->TREE) { }
375 0 11 if ($no_content) { }
398 0 2 unless defined $old_commit
418 4 6 if ($delta->status eq 'deleted') { }
421 3 3 if ($no_content) { }