Branch Coverage

blib/lib/Metabrik/System/Service.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
47 0 0 if ($os eq 'ubuntu') { }
0 0 elsif ($os eq 'debian') { }
0 0 elsif ($os eq 'kali') { }
0 0 elsif ($os eq 'centos') { }
48 0 0 unless $ss = 'Metabrik::System::Ubuntu::Service'->new_from_brik_init($self)
51 0 0 unless $ss = 'Metabrik::System::Debian::Service'->new_from_brik_init($self)
54 0 0 unless $ss = 'Metabrik::System::Kali::Service'->new_from_brik_init($self)
57 0 0 unless $ss = 'Metabrik::System::Centos::Service'->new_from_brik_init($self)
70 0 0 if (defined $name) { }
0 0 elsif (not exists $self->brik_properties->{'need_services'}) { }
78 0 0 if (exists $self->brik_properties->{'need_services'}{$os}) { }
96 0 0 if (defined $name) { }
0 0 elsif (not exists $self->brik_properties->{'need_services'}) { }
104 0 0 if (exists $self->brik_properties->{'need_services'}{$os}) { }
122 0 0 if (defined $name) { }
0 0 elsif (not exists $self->brik_properties->{'need_services'}) { }
130 0 0 if (exists $self->brik_properties->{'need_services'}{$os}) { }
148 0 0 if (defined $name) { }
0 0 elsif (not exists $self->brik_properties->{'need_services'}) { }
149 0 0 unless $self->stop($name)
158 0 0 if (exists $self->brik_properties->{'need_services'}{$os}) { }
161 0 0 unless $self->stop($name)
177 0 0 unless my $so = 'Metabrik::System::Os'->new_from_brik_init($self)
185 0 0 unless $self->brik_help_run_undef_arg('disable', $service_name)
187 0 0 unless my $ss = $self->get_system_service
195 0 0 unless $self->brik_help_run_undef_arg('enable', $service_name)
197 0 0 unless my $ss = $self->get_system_service