Branch Coverage

lib/Dist/Zilla/Plugin/Git/Checkout.pm
Criterion Covered Total %
branch 45 50 90.0


line true false branch
67 3 1 unless $self->_is_dirty
69 0 1 if $self->zilla->chrome->prompt_yn("Workspace " . $self->dir . " is dirty and was not updated. Release anyway?", {"default", 0})
103 1 12 unless $dir->child(".git")->is_dir
110 2 10 if $origin_f->is_failed or ($origin_f->stdout)[0] ne $repo
113 9 1 if ($self->_commitish_is_branch($commitish))
114 7 2 unless (defined $commitish_id)
118 7 0 if ($origin_head_f->is_done)
120 7 0 if (defined $commitish_id)
126 0 7 if (not defined $commitish_id or $commitish_id eq "")
133 3 6 if $head_f->is_failed or ($head_f->stdout)[0] ne $commitish_id
137 2 5 if ($git->run("status", "--porcelain")->stdout)
144 4 1 if ($self->_commitish_is_branch($commitish)) { }
174 15 3 if ($self->_commitish_is_branch($commitish)) { }
175 2 13 if (defined $commitish->{'id'}) { }
198 30 7 if $commitish->{'type'} eq $BRANCH
207 1 40 unless defined $git_version
217 1 39 unless Git::Version::Compare::ge_git($git_version, "1.7.10")
231 4 35 if $num_options > 1
233 5 30 if defined $branch
234 1 29 if defined $rev
235 5 24 if defined $tag
250 13 18 if ($dir->is_dir) { }
269 3 22 if (defined $self->push_url) { }
274 1 21 if ($push_url_f->is_done)
277 1 0 if (defined $push_url)