Branch Coverage

blib/lib/Nagios/Status/Host.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
86 0 0 if defined $host
109 0 0 unless (defined $attr)
139 0 0 if ($attr eq 'all') { }
142 0 0 if (exists $$self{'attributes'}{$attr}) { }
164 0 0 if ($$self{'attributes'}{'last_time_up'} < $$self{'attributes'}{'last_time_down'}) { }
185 0 0 if ($$self{'attributes'}{'last_time_up'} < $$self{'attributes'}{'last_time_unreachable'}) { }
223 0 0 if ($self->is_down) { }
246 0 0 if ($self->is_unreachable) { }
268 0 0 unless open STATUS, $$self{'status_log'}
271 0 0 if ($line =~ /^hoststatus\s*{/)
276 0 0 if ($found and $line =~ /$host/)
280 0 0 if ($found and $line =~ /}/)
281 0 0 if ($found_host) { }
293 0 0 if (not $found) { }