| blib/lib/CPAN/InGit/MutableTree.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 27 | 41 | 65.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 22 | 6 | 5 | 0 | defined $self->{'branch'} and not ref $self->{'branch'} |
| 28 | 6 | 4 | 1 | $self->{'branch'} and not $self->{'tree'} |
| 43 | 2 | 2 | 6 | ref $node eq "HASH" and $node->{$basename} |
| 109 | 0 | 1 | 0 | defined $mode and $mode != 33188 |
| 143 | 20 | 0 | 3 | $dirent && $dirent->type == Git::Raw::Object::TREE() |
| 180 | 0 | 6 | 1 | $branch and $update_head |
| line | l | !l | condition |
|---|---|---|---|
| 64 | 3 | 19 | $opts{'mode'} // 33188 |
| 72 | 1 | 0 | $fullpath || die("mkdir($fullpath): $!") |
| 89 | 15 | 6 | $self->{'_changes'} //= {} |
| 91 | 22 | 32 | $node->{$_} //= {} |
| 101 | 21 | 1 | $self->{'_changes'} //= {} |
| 109 | 0 | 0 | chmod $path, $mode or die "chmod($path, $mode): $!" |
| 168 | 0 | 1 | eval { do { [$self->git_repo->head->target] } } || [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 160 | 0 | 7 | 0 | $opts{'author'} // $cur_sig |
| 161 | 1 | 0 | 6 | $self->use_workdir // $opts{'update_head'} |
| 162 | 0 | 7 | 0 | $opts{'committer'} // $cur_sig |