Branch Coverage

lib/Nagios/Config.pm
Criterion Covered Total %
branch 14 32 43.7


line true false branch
71 0 4 ref $_[0] ? :
77 4 0 if (@_ % 2 == 0) { }
82 4 0 if ($args{'filename'})
85 2 2 if ($args{'version'})
88 1 3 if ($args{'allow_missing_files'})
91 0 4 if ($args{'force_relative_files'})
104 4 0 if (my $files = $main_cfg->get('cfg_file'))
106 0 29 if ($force_relative_files)
109 1 28 if $allow_missing_files and not -e $file
115 0 4 if (my $dir = $main_cfg->get('cfg_dir'))
121 0 0 if ($force_relative_files)
124 0 0 if $allow_missing_files and not -e $file
134 4 0 if (not $fast_mode) { }
150 0 0 if (not -d "$dir/$file" and $file =~ /\.cfg$/) { }
0 0 elsif (-d "$dir/$file" and not $file =~ /^\./ and $file ne 'CVS') { }
167 0 0 if ($_[1])