Branch Coverage

blib/lib/App/GitGot/Command/checkout.pm
Criterion Covered Total %
branch 13 28 46.4


line true false branch
35 2 2 unless $repo->repo
45 2 0 if ($repo_type eq 'git') { }
49 2 0 if $fxn
51 0 2 if $self->quiet and not $status
58 0 2 unless my($self, $entry, $branch) = @_
66 0 2 $self->opt->create ? :
79 0 2 if (grep {/(ahead|behind).*?by (\d+) commits./u;} @o) { }
0 2 elsif (grep {/^Switched to/u;} @err) { }
0 2 elsif (grep {/^Already on/u;} @err) { }
0 2 elsif (grep {/did not match/u;} @o) { }
2 0 elsif (scalar @o == 0 and scalar @err == 0) { }
90 0 0 unless $self->quiet
98 2 0 unless $self->quiet
104 0 0 unless $self->quiet