Branch Coverage

blib/lib/Monit/HTTP.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
124 0 3 if ($self->{'use_auth'})
140 0 0 if (defined $self->{'username'} and defined $self->{'password'} and $self->{'use_auth'})
185 3 4 if ($res->{'success'}) { }
205 0 5 unless $type == -1 or grep {$_ == $type;} keys %{MONIT_TYPES();}
210 2 0 if ($type == -1 or $s->{'-type'} == $type)
237 2 2 if ($s->{'name'} eq $service)
242 2 0 if exists $s->{'-type'}
264 12 20 if exists $s->{$thing}
269 2 0 if (my $sys = $s->{'system'} || $s)
272 6 2 if exists $sys->{'memory'}{$thing}
277 0 4 if exists $sys->{'swap'}{$thing}
282 2 2 if exists $sys->{'cpu'}{$thing}
287 3 3 if exists $sys->{'load'}{$thing}
294 0 2 unless scalar keys %$status_href
306 0 0 unless grep {$command eq $_;} keys %{MONIT_ACTIONS();}
308 0 0 unless (defined $service)
319 0 0 unless $res->{'success'}