Branch Coverage

lib/Rex/Pkg/Base.pm
Criterion Covered Total %
branch 8 52 15.3


line true false branch
30 0 0 $version ? :
34 0 0 if defined $version
36 0 0 unless (@pkg_info)
37 0 0 $version ? :
43 0 0 $version ? :
51 0 0 if ($self->is_installed($pkg, $option))
67 0 1 $version ? :
69 0 1 if ($pkg =~ /\*/u and defined $self->{'commands'}{'install_glob'}) { }
83 0 1 if (exists $option->{'version'})
91 0 1 unless ($? == 0)
106 0 0 unless exists $option{'update_packages'}
108 0 0 unless (exists $self->{'commands'}{'update_system'})
113 0 0 if ($option{'update_metadata'})
117 0 0 if ($option{'update_packages'})
121 0 0 unless ($? == 0)
127 0 0 if ($option{'dist_upgrade'})
128 0 0 if (not exists $self->{'commands'}{'dist_update_system'}) { }
135 0 0 unless ($? == 0)
152 0 0 if ($pkg =~ /\*/u and defined $self->{'commands'}{'remove_glob'}) { }
168 0 0 unless ($? == 0)
181 0 0 unless exists $self->{'commands'}{'purge'}
187 0 0 unless ($? == 0)
201 0 0 unless (exists $self->{'commands'}{'update_package_db'})
208 0 0 if ($? != 0)
250 2 4 if ($old_pkg->{'name'} eq $new_pkg->{'name'})
257 1 1 if ($old_pkg->{'version'} ne $new_pkg->{'version'})