Branch Coverage

blib/lib/Nagios/Status/Service.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
91 0 0 if defined $serv
114 0 0 unless (defined $attr)
120 0 0 if ($attr =~ /^\s*([^=]+)=(.*?\S)\s*$/)
144 0 0 if ($attr eq 'all') { }
147 0 0 if (exists $$self{'attributes'}{$attr}) { }
169 0 0 if ($$self{'attributes'}{'last_time_ok'} < $$self{'attributes'}{'last_time_warning'}) { }
190 0 0 if ($$self{'attributes'}{'last_time_ok'} < $$self{'attributes'}{'last_time_unknown'}) { }
211 0 0 if ($$self{'attributes'}{'last_time_ok'} < $$self{'attributes'}{'last_time_critical'}) { }
249 0 0 if ($self->is_warning) { }
272 0 0 if ($self->is_unknown) { }
295 0 0 if ($self->is_critical) { }
317 0 0 unless open STATUS, $$self{'status_log'}
320 0 0 if ($line =~ /^servicestatus\s*{/)
325 0 0 if ($found and $line =~ /$serv/)
329 0 0 if ($found and $line =~ /}/)
330 0 0 if ($found_serv) { }
342 0 0 if (not $found) { }