Branch Coverage

lib/Rex/Service/Base.pm
Criterion Covered Total %
branch 0 26 0.0


line true false branch
34 0 0 if (not $self->service_exists($service_name) and "Rex::Config"->get_check_service_exists)
47 0 0 if (exists $options->{$key})
60 0 0 unless (eval { do { $self->{'__cmd_output__'} = i_run($cmd, "nohup", 1); $ret_val = 1 } })
75 0 0 if (exists $known_services->{$service}{'start'})
89 0 0 if (exists $known_services->{$service}{'restart'})
103 0 0 if (exists $known_services->{$service}{'stop'})
117 0 0 if (exists $known_services->{$service}{'reload'})
131 0 0 if (exists $known_services->{$service}{'status'})
145 0 0 if ($what =~ /^stop/u) { }
0 0 elsif ($what =~ /^start/u or $what =~ /^run/u) { }
149 0 0 if (exists $known_services->{$service}{'ensure_stop'})
159 0 0 if (exists $known_services->{$service}{'ensure_start'})
179 0 0 unless (exists $self->{'commands'}{'service_exists'})