Branch Coverage

blib/lib/LedgerSMB/Installer.pm
Criterion Covered Total %
branch 0 150 0.0


line true false branch
82 0 0 unless (-d $installpath)
92 0 0 if $config->verify_sig
111 0 0 if $config->cpanfile
114 0 0 if ($config->cpanfile_path) { }
123 0 0 unless ($response->{'success'})
206 0 0 unless $dep->{'relationship'} eq "requires"
207 0 0 unless $dep->{'phase'} eq "runtime"
230 0 0 if @missed
258 0 0 unless open my $fh, ">", "File::Spec"->catfile($installpath, $fn)
269 0 0 if ($r->{'status'} == 599) { }
0 0 elsif (not $r->{'success'}) { }
279 0 0 if ($r->{'status'} == 599) { }
0 0 elsif (not $r->{'success'}) { }
286 0 0 unless open my $fh, ">", "File::Spec"->catfile($installpath, "$fn.asc")
297 0 0 if -e $exe and not -x $exe
299 0 0 -x $exe ? :
301 0 0 if ($rv)
317 0 0 exists $ENV{'POSTGRES_HOME'} ? :
0 0 exists $ENV{'POSTGRES_LIB'} ? :
375 0 0 unless (eval "require $oss_class")
392 0 0 if (@args != 2)
398 0 0 if defined $version
401 0 0 unless open my $out, ">:raw", $deps_outfile
405 0 0 unless ($dss->am_system_perl)
406 0 0 unless close $out
414 0 0 unless ($requirements->accepts_module("perl", $]))
415 0 0 unless close $out
423 0 0 if ($config->effective_prepare_env)
441 0 0 if $failed
444 0 0 if ($config->effective_uninstall_env)
449 0 0 if defined $exception
470 0 0 unless $pkgs and @$pkgs
473 0 0 if grep {$mod eq $_;} @$unmapped
487 0 0 if defined $version
491 0 0 if ($dss->am_system_perl)
494 0 0 if ($config->sys_pkgs)
497 0 0 if ($pkg_deps) { }
498 0 0 if ($dss->pkg_can_install) { }
499 0 0 if ($config->effective_prepare_env)
525 0 0 unless ($requirements->accepts_module("perl", $]))
534 0 0 if ($config->effective_prepare_env)
538 0 0 if ($dss->am_system_perl and $dss->pkg_can_install) { }
539 0 0 if ($config->effective_prepare_env)
549 0 0 if (not eval { do { require DBD::Pg; 1 } } || $class->_module_will_install('DBD::Pg', $pkg_deps, $unmapped_mods)) { }
0 0 elsif (eval { do { require DBD::Pg; 1 } }) { }
0 0 elsif (not grep({$_ eq 'DBD::Pg';} @$unmapped_mods)) { }
555 0 0 unless $pg_config
562 0 0 unless (-e $header_file)
563 0 0 unless ($dss->pkg_can_install)
583 0 0 if (not eval { do { require LaTeX::Driver; 1 } } || $class->_module_will_install('LaTeX::Driver', $pkg_deps, $unmapped_mods)) { }
0 0 elsif (eval { do { require LaTeX::Driver; 1 } }) { }
0 0 elsif (not grep({$_ eq 'LaTeX::Driver';} @$unmapped_mods)) { }
592 0 0 unless ($latex)
593 0 0 unless ($dss->pkg_can_install)
607 0 0 if ($dss->pkg_can_install) { }
619 0 0 if (not eval { do { require XML::Parser; 1 } } || $class->_module_will_install('XML::Parser', $pkg_deps, $unmapped_mods)) { }
0 0 elsif (eval { do { require XML::Parser; 1 } }) { }
0 0 elsif (not grep({$_ eq 'XML::Parser';} @$unmapped_mods)) { }
630 0 0 $libpath ? :
0 0 if (eval { do { assert_lib('lib', ['expat'], 'header', ['expat.h'], 'incpath', $incpath, $libpath ? ('libpath', $libpath) : ()); 1 } }) { }
635 0 0 if (not $dss->pkg_can_install) { }
660 0 0 unless (eval { do { require XML::LibXML; 1 } } or $class->_module_will_install("XML::LibXML", $pkg_deps, $unmapped_mods) or (eval { do { require XML::Twig; 1 } } or $class->_module_will_install("XML::Twig", $pkg_deps, $unmapped_mods)))
667 0 0 unless ($xml2_config)
668 0 0 if (not $dss->pkg_can_install) { }
679 0 0 unless $pkg_deps and @$pkg_deps
686 0 0 if (@extra_pkgs)
690 0 0 if ($config->effective_prepare_env)
711 0 0 if ($rv) { }
712 0 0 if (-e $config->installpath)
749 0 0 if ($cmd =~ /^-/u)
754 0 0 if ($cmd eq 'compute') { }
0 0 elsif ($cmd eq 'download') { }
0 0 elsif ($cmd eq 'help') { }
0 0 elsif ($cmd eq 'install') { }
0 0 elsif ($cmd eq 'system-id') { }