Branch Coverage

blib/lib/OPM/Installer.pm
Criterion Covered Total %
branch 26 56 46.4


line true false branch
40 0 0 if ($params{'repositories'} and ref $params{'repositories'} eq "ARRAY")
56 5 0 if (@_ % 2)
63 5 0 if ($self->repositories)
67 0 5 if ($params{'repositories'} and ref $params{'repositories'} eq "ARRAY")
72 0 0 if ($params{'version'} and $params{'version_exact'})
77 0 5 if $self->verbose
80 1 4 if ($installed_version)
87 0 1 if ($params{'version'})
93 0 0 if $check
106 1 4 unless ($package_path)
109 0 1 $file_opts{'version'} ? :
123 1 3 if ($parsed->error_string)
130 0 3 unless ($self->_check_matching_versions($parsed, $self->version))
141 2 1 if ($self->utils_ts->is_installed("package", $parsed->name, "version", $parsed->version))
150 0 1 if $self->verbose
153 0 1 unless $parsed->dependencies
158 0 1 if $self->verbose
165 0 0 unless &is_module_name($module)
167 0 0 if &use_module($module, $version)
176 0 0 if $self->utils_ts->is_installed(%{$addon_dep;})
179 0 0 unless ($success or $self->force)
184 0 1 if ($self->prove)
191 0 1 if $self->verbose
203 0 0 $self->sudo ? :
208 0 0 unless ($out =~ /Successfully installed /u)
240 7 22 if $r_major != $major
241 14 8 if lc $r_minor ne "x" and $r_minor != $minor
242 2 6 if lc $r_patch ne "x" and $r_patch != $patch