Branch Coverage

blib/lib/App/PS1/Plugin/Branch.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
24 0 0 if (-f $dir->child('.git', 'HEAD')) { }
0 0 elsif (-f $dir->child('CVS', 'Tag')) { }
0 0 elsif (-f $dir->child('CVS', 'Root')) { }
29 0 0 if (length $branch == 40 and $branch =~ /^[\da-f]+$/)
31 0 0 if $ans
46 0 0 if $type
50 0 0 unless $type
52 0 0 $self->cols && $self->cols > 40 ? :
55 0 0 if ($max_branch_width > 60)
58 0 0 if (length $branch > $max_branch_width)
59 0 0 if ($options->{'summarize'})
62 0 0 if (length $branch > $max_branch_width)
79 0 0 if $type ne 'git '
89 0 0 if $staged ne '?' and $staged ne ' '
90 0 0 if $unstaged ne '?' and $unstaged ne ' '
91 0 0 if $staged eq '?' and $unstaged eq '?'
96 0 0 if $status{'staged'}
97 0 0 if $status{'unstaged'}
98 0 0 if $status{'untracked'}
103 0 0 $status{'staged'} > 20 ? :
0 0 !$status{'staged'} ? :
0 0 $status{'unstaged'} > 20 ? :
0 0 !$status{'unstaged'} ? :
0 0 $status{'untracked'} > 20 ? :
0 0 !$status{'untracked'} ? :
110 0 0 if -x "$_/git"
117 0 0 if -x "$_/cvs"