Branch Coverage

blib/lib/Env/PS1.pm
Criterion Covered Total %
branch 38 60 63.3


line true false branch
13 0 1 unless @_
16 0 1 unless /^\$(.+)/
34 0 4 if (ref $$self{'var'}) { }
40 2 10 ref $$self{'var'} ? :
42 2 2 $2 ? :
2 4 $1 ? :
44 2 1 unless ($format eq $$self{'format'} and exists $ENV{'CLICOLOR'} and $ENV{'CLICOLOR'} eq $$self{'clicolor'})
49 2 14 ref $_ ? :
59 0 0 $2 ? :
0 0 $1 ? :
61 0 1 ref $_ ? :
73 2 12 unless defined $format
74 12 0 if $_getpwuid
79 2 18 if ($2 eq '\\\\') { }
2 16 elsif ($2 eq '!') { }
4 12 elsif ($3) { }
2 10 elsif (exists $map{$4}) { }
2 8 elsif (grep {$4 eq $_;} 'C', 'D', 'P') { }
0 8 elsif ($4 eq '[' or $4 eq ']') { }
84 0 2 if (ref $item and $format =~ s/^\{(.*?)\}//) { }
96 1 7 exists $alias{$4} ? :
97 6 2 $self->can($sub) ? :
103 2 48 if (ref $_ or ref $cache[-1]) { }
111 0 5 unless $user_info[0] or $ENV{'USER'}
114 0 0 $ENV{'PWD'} eq $ENV{'HOME'} ? :
0 0 if $_[1] eq 'w'
116 0 0 if $ENV{'PWD'} eq '/'
117 0 0 if ($ENV{'PWD'} eq $ENV{'HOME'})
289 0 1 $user_info[2] ? :
395 2 0 if defined $ENV{'CLICOLOR'} and not $ENV{'CLICOLOR'}