Branch Coverage

blib/lib/Apache/Test.pm
Criterion Covered Total %
branch 34 106 32.1


line true false branch
73 0 6 if ($_[0] and $_[0] =~ /^-withtestmore/ or @testmore) { }
76 0 0 unless $real_plan = eval {
106 0 6 @_ ? :
121 0 15 @_ ? :
128 0 0 if (%SubTests and not $SubTests{$Test::ntest})
147 0 6 if (@testmore) { }
175 0 0 if (defined &Apache2::RequestRec::TIEHANDLE) { }
191 0 0 if (Apache::TestRequest::install_http11()) { }
208 3 0 if (Apache::TestRequest::has_lwp()) { }
218 0 6 if ref $_[0]
224 4 2 if (@_ % 2)
228 1 3 if ($ref) { }
229 1 0 if ($ref eq 'CODE') { }
0 0 elsif ($ref eq 'ARRAY') { }
243 3 0 $condition ? :
247 0 4 unless ($meets_condition)
248 0 0 @SkipReasons ? :
266 0 7 if (ref $cond eq 'HASH') { }
6 1 elsif ($cond =~ /^(0|1)$/) { }
268 0 0 if ref $value eq 'CODE'
269 0 0 if $value
275 0 6 if $cond == 0
278 0 1 unless need_module($cond)
289 1 5 ref $_[0] eq 'ARRAY' ? :
293 5 2 if (/^[a-z0-9_.]+$/)
295 3 2 unless $mod =~ /\.c$/
296 3 2 if $$cfg{'modules'}{$mod}
297 2 0 unless $mod =~ /^mod_/
298 2 0 if $$cfg{'modules'}{$mod}
299 0 0 if (exists $$cfg{'cmodules_disabled'}{$mod})
304 0 2 unless /^[\w:.]+$/
309 2 0 unless (/\.c$/)
311 2 0 unless $@
314 0 2 if $not_found
317 0 6 if (@reasons) { }
329 0 0 if $] >= $version
340 0 0 unless need_module($module)
344 0 0 if eval {
390 0 2 unless $rc
401 0 0 if ($rev == $version) { }
416 0 0 if (normalize_vstring($current) < normalize_vstring($wanted)) { }
432 0 0 if (normalize_vstring($current) != normalize_vstring($wanted)) { }
448 0 0 if ($current ne $wanted) { }
461 0 0 if defined $Config{$key}
465 0 0 if (my $ext = $Config{'extensions'})
479 0 0 if (defined &$have) { }
480 0 0 if &$have()
484 0 0 if (exists $Config{$key})
486 0 0 if config_enabled($key)
491 0 0 $config ? :
504 0 0 if ($build_config)
506 0 0 unless ($$apr_config{'HAS_THREADS'})
514 0 0 unless (exists $Config{$key} and config_enabled($key))