Branch Coverage

lib/Nagios/Config/File.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
51 0 5 unless $file
58 0 5 if (ref $file) { }
63 0 5 unless open $fh, "<$file"
85 3277 372 if ($this->is_comment($line)) { }
372 0 elsif (my($name, $value) = $this->is_attribute($line)) { }
89 32 340 if ($DUPLICATES_ALLOWED{$name}) { }
113 3277 372 if ($line eq '' or $line =~ /^#/)
124 372 0 if ($line =~ /^([\w\$]+)\s*=\s*(.+)$/)
146 0 24 $split ? :
168 0 0 if ($DUPLICATES_ALLOWED{$attr}) { }