Branch Coverage

blib/lib/Apache/TestConfigParse.pm
Criterion Covered Total %
branch 50 90 55.6


line true false branch
65 6 0 if (my $ifmodule = $ifmodule{'TypesConfig'}) { }
97 12 6 if (file_name_is_absolute($file)) { }
103 6 6 unless defined $$try[0]
105 6 0 if (-d $$try[0])
112 6 0 if ($serverroot) { }
130 12 6 if (defined $dir and -e $dir and -d _) { }
131 12 0 if (-e $result) { }
196 0 12 if (UNIVERSAL::isa($_, 'Regexp')) { }
197 0 0 if $name =~ /$_/
200 0 12 if $name eq $_
214 0 6 unless (-e $file)
223 0 6 if $modname_alias{$name}
229 0 6 if ($self->should_skip_module($name))
262 6 0 if (exists $$self{'vars'}{lc $directive}) { }
282 0 12 if (-d $item)
296 6 6 unless open $fh, $file
301 5514 1248 if /^$/
313 6 1242 if ($directive eq 'Include')
321 2466 30 unless $$wanted{$directive}
343 0 6 unless ($file and -e $file)
344 0 0 if (my $base = $$self{'httpd_basedir'})
350 0 0 unless (-e $file)
351 0 0 if (-e $default_conf) { }
356 0 0 if (my $root = $$self{'httpd_defines'}{'HTTPD_ROOT'})
365 6 0 unless ($extra_file and -e $extra_file)
366 0 6 if ($extra_file and my $base = $$self{'httpd_basedir'})
370 0 0 if not -e $extra_file and -e $default_conf
374 0 6 unless $file or $extra_file
385 6 0 if $file
386 0 6 if $extra_file
391 0 30 unless $$c{$directive}
404 0 6 unless $httpd
412 6 156 unless /\.c$/
425 0 6 unless $httpd
433 102 30 if (s/^\s*-D\s*//) { }
18 12 elsif (/(version|built|module magic number|server mpm):\s+(.*)/i) { }
436 54 48 $val ? :
449 6 0 if (my $mmn = $$self{'httpd_info'}{'MODULE_MAGIC_NUMBER'})
458 0 6 if (my $mpm = $$self{'httpd_info'}{'SERVER_MPM'}) { }
6 0 elsif (my $mpm_dir = $$self{'httpd_defines'}{'APACHE_MPM_DIR'}) { }
473 6 0 if ($version =~ qr"Apache/2")
478 0 6 unless ($version =~ qr"Apache/(2.0|1.3)")
488 0 6 unless $httpd
498 0 6 unless s/^Server\s+version:\s*//i
502 0 6 unless m[^Apache/]