Condition Coverage

blib/lib/Monit/HTTP.pm
Criterion Covered Total %
condition 12 32 37.5


and 3 conditions

line !l l&&!r l&&r condition
136 5 0 0 defined $self->{'username'} and defined $self->{'password'}
5 0 0 defined $self->{'username'} and defined $self->{'password'} and $self->{'use_auth'}

or 2 conditions

line l !l condition
117 1 2 $self->{'hostname'} ||= 'localhost'
118 0 3 $self->{'port'} ||= 2812
119 0 3 $self->{'use_auth'} ||= 0
121 0 0 $self->{'username'} ||= 'admin'
122 0 0 $self->{'password'} ||= 'monit'
188 4 0 $res->{'content'} || 'NIL'
198 0 5 $type ||= '-1'

or 3 conditions

line l !l&&r !l&&!r condition
112 0 3 0 ref $class || $class
201 5 0 0 $type == -1 or grep {$_ == $type;} keys %{MONIT_TYPES();}
206 2 0 0 $type == -1 or $s->{'-type'} == $type
265 0 2 0 $s->{'system'} || $s