Branch Coverage

blib/lib/local/c.pm
Criterion Covered Total %
branch 22 94 23.4


line true false branch
37 0 0 if ($arg =~ /\342\210\222/) { }
0 0 elsif (grep {$arg eq $_;} @KNOWN_FLAGS) { }
0 0 elsif ($arg =~ /^--/) { }
57 0 1 defined $arg_store{'print-env'} ? :
60 0 1 if ($arg_store{'deactivate'})
63 0 1 if ($arg_store{'deactivate-all'})
77 2 1 if (@methods) { }
108 0 1 if (defined $path) { }
118 0 1 unless $path =~ /^~/
122 1 0 if (eval { do { require File::HomeDir } } and $File::HomeDir::VERSION >= 0.65) { }
124 0 1 if (defined $user) { }
130 0 0 if (defined $user) { }
133 0 0 if (defined $ENV{'HOME'}) { }
141 0 1 unless (defined $homedir)
142 0 0 defined $user ? :
0 0 $tried_file_homedir ? :
165 1 0 unless ($deactivating)
166 0 1 if (@active_lcs and $active_lcs[-1] eq $path) { }
0 1 elsif (grep {$_ eq $path;} @active_lcs) { }
167 0 0 if $0 eq '-'
179 0 1 if ($0 eq '-' or $printenv) { }
199 0 1 unless (-d $path)
205 0 1 if $^O eq 'MSWin32'
212 0 0 if (defined $ENV{'SHELL'})
218 0 0 if (/csh/) { }
226 0 0 if (defined $ENV{'COMSPEC'} and $^O ne 'cygwin')
231 0 0 if (/command\.com/) { }
0 0 elsif (/cmd\.exe/) { }
0 0 elsif (/4nt\.exe/) { }
265 0 0 if defined $value
277 0 0 defined $value ? :
283 0 0 defined $value ? :
289 0 0 defined $value ? :
301 0 1 if ($deactivating == 1) { }
0 1 elsif ($deactivating == 2) { }
313 0 0 $^O ne 'MSWin32' ? :
0 0 $interpolate == 1 ? :
0 1 $ENV{'LOCAL_C_PREFIXES'} ? :
0 0 $^O ne 'MSWin32' ? :
0 0 $ENV{'PKG_CONFIG_PATH'} ? :
1 0 $interpolate == 1 ? :
0 0 $^O ne 'MSWin32' ? :
1 0 $interpolate == 1 ? :
350 1 0 unless defined $ENV{'LOCAL_C_PREFIXES'}
359 0 0 unless (grep {$_ eq $path;} @active_lcs)
376 0 0 @active_lcs ? :
0 0 @new_lc_root ? :