Branch Coverage

lib/Ubic/Result/Class.pm
Criterion Covered Total %
branch 15 20 75.0


line true false branch
37 0 232 if @_
38 100 132 if (grep {$_ eq $self->{'type'};} 'running', 'already running', 'started', 'already started', 'restarted', 'reloaded', 'stopping') { }
124 8 elsif (grep {$_ eq $self->{'type'};} 'not running', 'stopped', 'starting') { }
0 8 elsif (grep {$_ eq $self->{'type'};} 'down') { }
1 7 elsif (grep {$_ eq $self->{'type'};} 'autostarting') { }
57 0 6 if @_
58 5 1 if (grep {$_ eq $self->{'type'};} 'started', 'stopped', 'reloaded')
66 0 347 $self->{'cached'} ? :
67 159 188 if (defined $self->{'msg'}) { }
68 0 159 if ($self->{'type'} eq 'unknown') { }