Branch Coverage

blib/lib/Ym/ymparse.pl
Criterion Covered Total %
branch 0 108 0.0


line true false branch
15 0 0 if (defined $$branch{$np}) { }
0 0 elsif (defined $$branch{$tp} and defined $$branch{'register'} and $$branch{'register'} == 0) { }
36 0 0 if (defined $$branch{$np} and defined $$branch{$sp}) { }
0 0 elsif (defined $$branch{$tp} and defined $$branch{'register'} and $$branch{'register'} == 0) { }
56 0 0 if (defined $$branch{$np}) { }
70 0 0 if (defined $$branch{$np}) { }
84 0 0 if (defined $$branch{$np}) { }
99 0 0 if (defined $$branch{$np}) { }
0 0 elsif (defined $$branch{$tp} and defined $$branch{'register'} and $$branch{'register'} == 0) { }
120 0 0 if (defined $$branch{$np}) { }
135 0 0 if (defined $$branch{$hp} and defined $$branch{$sp}) { }
139 0 0 if (defined $$tree{'service_dependencies'}{$dependent_host}{'service_dependencies'})
157 0 0 if (defined $$branch{$hp} and defined $$branch{$mhp}) { }
176 0 0 unless open CFG, "$cfg"
178 0 0 if (scalar @err_msg > 0)
183 0 0 if /^\s*[#;]/o
185 0 0 if (/^\s*define\s+(\w+)\s*{/o)
190 0 0 if $l =~ /^\s*[#;]/o
191 0 0 if $l =~ /^\s*$/
193 0 0 unless ($l =~ /(\w+)\s+(.+)$/o)
200 0 0 if $debug
204 0 0 if $debug
205 0 0 if ("$dn" eq 'host') { }
0 0 elsif ("$dn" eq 'service') { }
0 0 elsif ("$dn" eq 'hostgroup') { }
0 0 elsif ("$dn" eq 'command') { }
0 0 elsif ("$dn" eq 'contactgroup') { }
0 0 elsif ("$dn" eq 'contact') { }
0 0 elsif ("$dn" eq 'timeperiod') { }
0 0 elsif ("$dn" eq 'servicedependency') { }
0 0 elsif ("$dn" eq 'hostdependency') { }
206 0 0 unless (PlaceHost(\%d, \%s))
211 0 0 unless (PlaceService(\%d, \%s))
216 0 0 unless (PlaceHostgroup(\%d, \%s))
221 0 0 unless (PlaceCommand(\%d, \%s))
226 0 0 unless (PlaceContactgroup(\%d, \%s))
231 0 0 unless (PlaceContact(\%d, \%s))
236 0 0 unless (PlaceTimeperiod(\%d, \%s))
241 0 0 unless (PlaceServiceDependency(\%d, \%s))
246 0 0 unless (PlaceHostDependency(\%d, \%s))
269 0 0 unless $nagios_cfg
272 0 0 unless $opts
273 0 0 if $$opts{'old_base'}
274 0 0 if $$opts{'new_base'}
276 0 0 if $$opts{'nagios_cfg_base'} and not $$opts{'real_base'} or not $$opts{'nagios_cfg_base'} and $$opts{'real_base'}
282 0 0 unless open NAGIOS_MAIN, "$nagios_cfg"
285 0 0 if (/^(\w+)\s*=\s*([^;#]+)$/o)
286 0 0 if ("$1" eq 'cfg_file') { }
288 0 0 if ($$opts{'nagios_cfg_base'} and $$opts{'real_base'})
301 0 0 if (scalar @{$main{'config'}{'cfg_file'};} < 1)
309 0 0 if $curr_cfg eq 'ndomod.cfg'
314 0 0 if ($mtime > $max_mod_time)
318 0 0 if (not defined $main{$k}) { }
323 0 0 if (not defined $main{$k}{$sk}) { }