Branch Coverage

blib/lib/Monitoring/TT/Input/Nagios.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
88 0 3 unless $self->{'montt'}->tt->process(\$template, {}, \$output)
91 0 40 if substr($line, 0, 1) eq '#'
92 0 40 if $line =~ /^\s*$/gmx
94 5 35 if ($line =~ /^\s*define\s+(\w+)($|\s|{)/mx) { }
35 0 elsif ($in_obj) { }
96 0 5 if ($in_type . 's' ne $type)
102 5 30 if ($line =~ /^\s*}/mx) { }
112 5 0 if $type eq 'hosts'
118 5 0 if ($type eq 'hosts')
123 0 5 if ($type eq 'contacts')