Branch Coverage

lib/CPANPLUS/Dist.pm
Criterion Covered Total %
branch 43 58 74.1


line true false branch
21 41 253 if @_
116 0 42 unless check($tmpl, \%hash)
128 0 42 unless check($tmpl2, \%hash)
131 0 42 unless (can_load('modules', {$format, '0.0'}, 'verbose', 1))
141 1 41 if ($conf->_get_build('sanity_check') and not $obj->format_available)
156 1 40 unless ($obj->init)
193 3 62 if (not $Loaded++ and check_install('module', 'Module::Pluggable', 'version', '2.4'))
237 0 17 unless check($tmpl, \%hash)
239 0 17 if $mod->is_uptodate('version', $ver)
241 15 2 if ($cb->_vcmp($ver, $mod->version) > 0)
292 0 20 unless check($tmpl, \%hash)
295 4 16 unless keys %$prereqs
322 0 16 if ($self->module =~ /^Bundle(::|-)CPANPLUS(::|-)Dependencies/) { }
325 0 0 $mod =~ /CPANPLUS/ ? :
344 4 14 unless ($modobj)
350 14 0 if (not $dist->prereq_satisfied('modobj', $modobj, 'version', $version)) { }
0 0 elsif (sub {
372 2 14 if ($target eq 'ignore')
375 2 0 if (@install_me) { }
405 0 12 if not $force and not $prereq_build and $dist->prereq_satisfied('modobj', $modobj, 'version', $version)
410 1 11 if ($conf->get_conf('prereqs') == 2 and not $cb->_callbacks->install_prerequisite->($self, $modobj))
421 1 10 if (defined $modobj->status->installed and not $modobj->status->installed)
431 1 9 if ($modobj->package_is_perl_core)
443 1 8 if ($$pending{$modobj->module})
462 3 5 unless ($modobj->install(%$pa, %$ca, %$ia, 'force', $force, 'verbose', $verbose, 'format', $format, 'target', $target))
477 3 5 if $flag
480 2 3 if ($target ne 'install')
481 0 2 unless my $dir = $modobj->status->extract
494 9 5 unless $flag