Branch Coverage

lib/Ubic/Service/Skeleton.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
27 2 30 if ($status->status eq 'running') { }
28 2 elsif ($status->status eq 'not running') { }
2 0 elsif ($status->status eq 'broken') { }
47 2 21 if ($status->status eq 'not running')
79 2 21 if (&blessed($start_result) and $start_result->isa('Ubic::Result::Class'))
83 21 2 if (not $status or $status->type eq 'starting')
87 21 0 unless $self->timeout_options->{'start'}
89 21 0 if ($status->status eq 'running')
94 0 23 unless ($status)
97 23 0 if ($status->status eq 'running') { }
110 2 20 if (&blessed($stop_result) and $stop_result->isa('Ubic::Result::Class'))
114 20 2 if (not $status or $status->type eq 'stopping')
118 20 0 unless $self->timeout_options->{'stop'}
120 20 0 if ($status->status eq 'not running')
125 0 22 unless ($status)
128 22 0 if ($status->status eq 'not running') { }