Branch Coverage

blib/lib/Pcore/Core/Env.pm
Criterion Covered Total %
branch 25 88 28.4


line true false branch
38 0 50 if (ref $inc_path)
45 0 50 unless -d $inc_path
50 40 10 unless (exists $inc_index->{$inc_path})
69 0 40 if (ref $inc_path)
76 40 0 unless (exists $inc_index->{$inc_path})
84 5 0 unless ($ENV->is_par)
89 5 0 unless ($is_module_build_test)
93 5 0 if ($ENV->dist and not exists $$inc_index{$ENV->dist->root . 'lib'} and -d $ENV->dist->root . 'lib/')
100 0 5 if ($ENV{'PCORE_LIB'} and -d $ENV{'PCORE_LIB'})
102 0 0 if (not exists $$inc_index{"$dir/lib"} and -d "$dir/lib/" and 'Pcore::Dist'->dir_is_dist_root($dir))
111 5 0 if $dist_lib_path
123 0 5 if ($Pcore::SCRIPT_PATH eq '-e' or $Pcore::SCRIPT_PATH eq '-') { }
128 0 5 unless -f $Pcore::SCRIPT_PATH
143 0 5 $self->is_par ? :
152 5 0 if (my $dist = $self->dist) { }
153 0 5 if ($self->is_par) { }
171 0 5 $ENV{'PAR_TEMP'} ? :
177 0 5 if ($self->is_par) { }
184 5 0 if ($dist)
194 5 0 if ($self->dist and $self->dist->is_pcore) { }
215 0 0 if (not -f $self->user_cfg_path) { }
226 0 5 unless ref $dist
229 0 5 unless $dist
232 0 5 if exists $self->_dist_idx->{$dist->name}
240 5 0 if ($dist->is_pcore) { }
0 0 elsif ($dist->is_main) { }
259 0 50 if ($dist_name) { }
273 0 0 unless $self->can_scan_deps
287 0 0 if ($$self{'SCAN_DEPS'})
290 0 0 if (-f $$self{'SCAN_DEPS'}) { }
291 0 0 unless open $fh, '+<:raw', $$self{'SCAN_DEPS'}
293 0 0 unless flock $fh, 2
302 0 0 unless open $fh, '>:raw', $$self{'SCAN_DEPS'}
304 0 0 unless flock $fh, 2
310 0 0 unless (exists $index->{$module})
311 0 0 if (not $INC{$module} =~ /\Q$module\E\z/msu) { }
325 0 0 if ($embedded_packages)
330 0 0 if ($INC{$module} eq $$embedded_packages{$embedded_package})
333 0 0 if (exists $index->{$module})
344 0 0 unless ($added)
355 0 0 if ($updated)
356 0 0 unless truncate $fh, 0
358 0 0 unless seek $fh, 0, 0
363 0 0 unless close $fh