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
140 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
121 1 2 $self->{'hostname'} ||= "localhost"
122 0 3 $self->{'port'} ||= 2812
123 0 3 $self->{'use_auth'} ||= 0
125 0 0 $self->{'username'} ||= "admin"
126 0 0 $self->{'password'} ||= "monit"
192 4 0 $res->{'content'} || 'NIL'
202 0 5 $type ||= -1

or 3 conditions

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