Branch Coverage

blib/lib/Apache/TestConfigC.pm
Criterion Covered Total %
branch 2 58 3.4


line true false branch
30 0 0 unless $mod =~ /^mod_(\w+)\.c$/
36 0 0 unless ($$self{'APXS'})
42 0 0 unless open $fh, $file
44 0 0 if ($v =~ /^\#define\s+HTTPD_TEST_REQUIRE_APACHE\s+(\d+)\s*$/) { }
0 0 elsif ($v =~ /^\#define\s+HTTPD_TEST_REQUIRE_APACHE\s+(\d\.\d+(\.\d+)?)/) { }
46 0 0 unless ($$self{'server'}{'rev'} == $1)
58 0 0 if (Apache::Test::normalize_vstring($current) < Apache::Test::normalize_vstring($wanted))
83 0 0 unless (-d $dir)
91 0 0 unless ($$self{'APXS'})
114 0 0 unless $name =~ /^mod_/
130 0 0 unless open $fh, ">$file"
156 0 0 unless close $fh
162 0 0 unless defined &$write
177 0 0 unless open $fh, ">$makefile"
190 0 0 unless close $fh
204 0 0 if ($self->server->{'rev'} == 1)
207 0 0 if (not -f $expfile)
211 0 0 unless open $fh, ">$expfile"
221 0 0 unless open $fh, ">$makefile"
235 0 0 unless close $fh
248 0 0 if $self->server->{'rev'} != 1
252 0 0 unless open $fh, ">$makefile"
265 0 0 unless close $fh
275 0 0 if ($?)
294 0 0 unless -e $so
305 0 0 if @args
312 0 0 unless $dir and -e "$dir/Makefile"
314 0 0 unless ($$self{'clean_level'} > 1)
334 6 252 $name eq 'NULL' ? :