Condition Coverage

blib/lib/Apache/TestConfig.pm
Criterion Covered Total %
condition 33 328 10.1


and 2 conditions

line l !l condition
1724 0 0 $ENV{'HOME'} and 1

and 3 conditions

line !l l&&!r l&&r condition
27 0 6 0 $ENV{'APACHE_TEST_COLOR'} && -t STDOUT
34 0 0 6 require Apache2::Build && &Apache2::Build::IS_MOD_PERL_BUILD()
137 0 0 5 defined $key and $key =~ /^-?-?(.+)/
0 2 3 defined $key and $key =~ /^-?-?(.+)/ and exists $$wanted_args{$1}
192 6 0 0 $$server{'rev'} and $$server{'rev'} == 2
215 0 0 6 $_[0] and ref $_[0]
251 0 0 6 $$args{'thaw'} and ref $thaw ne 'HASH'
337 0 0 0 $$vars{'maxclients_preset'} and $$vars{'maxclients_preset'} < $$vars{'minclients'}
591 6 0 0 ref $arg && ref $arg eq 'ARRAY'
626 0 0 0 ref $_ and ref $_ eq 'CODE'
1210 0 0 0 $module =~ /^(mod_\w+)_ssl$/ and $have_module ne $ssl_module
1217 0 0 0 $module =~ /^mod_/ and not $$mods{$have_module}
1276 0 0 0 $mod_path and -e $mod_path
1401 0 0 0 -e $generated and -M $generated < -M $File::Find::name
1483 0 0 0 $ca and -d $ca
1496 0 0 0 $$self{'vars'}{'httpd'} and $$self{'vars'}{'ssl_module'}
1512 0 0 0 -d $ssl_conf and not -d $conf
1644 0 0 0 -e $exe and -e $$vars{'t_conf_file'}
0 0 0 -e $exe and -e $$vars{'t_conf_file'} and -M $exe < -M $$vars{'t_conf_file'}
1721 0 0 0 $perl_bin and -d $perl_bin
1730 0 0 0 -x $base and -f _
1841 0 0 0 exists $$v{$key} and not defined $$v{$key}
1845 0 0 0 exists $$tvars{$key} and exists $$svars{$key}
0 0 0 exists $$tvars{$key} and exists $$svars{$key} and $$tvars{$key} eq $$svars{$key}
2019 0 0 6 $httpd and -e $httpd
0 0 6 $httpd and -e $httpd and -x _
2022 0 0 0 $apxs and -e $apxs
0 0 0 $apxs and -e $apxs and -x _
2089 0 0 0 -e $path and custom_config_path_is_writable($path)
2096 0 0 0 -e $blib_path and custom_config_path_is_writable($blib_path)
2120 0 0 0 $path and custom_config_path_is_writable($path)
2127 0 0 0 $path and custom_config_path_is_writable($path)
2158 0 0 0 $dir and not -e $dir
2214 0 0 0 $Apache::TestConfigData::vars and keys %$Apache::TestConfigData::vars
2246 0 0 0 defined $env_value and length $env_value
2327 0 0 0 -e $_ and -x _
2366 0 0 0 -e $_ and -x _
2415 0 0 0 $1 > 0 and $choices[$1 - 1]
2430 0 0 0 lc $ans eq 'skip' and not $optional

or 2 conditions

line l !l condition
32 6 0 eval {
309 0 0 $$vars{'sslcaorg'} ||= 'asf'
320 0 0 $$vars{'scheme'} ||= 'http'
329 0 0 $$vars{'minclients'} ||= 1
330 0 0 $$vars{'maxclients'} || 0
349 0 0 $$vars{'proxy'} ||= 'off'
350 0 0 $$vars{'proxyssl_url'} ||= ''
351 0 0 $$vars{'defines'} ||= ''
460 6 0 $$vars{'bindir'} ||= $self->apxs('BINDIR', 1)
461 6 0 $$vars{'sbindir'} ||= $self->apxs('SBINDIR')
462 6 0 $$vars{'target'} ||= $self->apxs('TARGET')
463 6 0 $$vars{'conf_dir'} ||= $self->apxs('SYSCONFDIR')
466 6 0 $$vars{'httpd_conf'} ||= catfile($$vars{'conf_dir'}, 'httpd.conf')
476 6 0 $$vars{'target'} ||= 'httpd'
591 0 6 $arg || ''
694 0 0 $$vars{'user'} || 'unknown'
764 15 0 $port_memoized || $ENV{'APACHE_TEST_PORT'} || $$self{'vars'}{'port'} || 8529
828 0 15 shift @_ || ''
832 0 15 $module || ''
886 0 0 (File::Basename::fileparse($filename, '\\..*'))[2] || ''
894 0 0 $file_ext{$ext} or 'default'
1113 0 0 shift @_ || 2
1194 0 0 $1 || ''
1195 0 0 $2 || ''
1642 0 0 $$vars{'apxs'} || $$vars{'httpd'} || ''
1720 0 0 $Config::Config{'bin'} || ''
2018 6 0 $$Apache::TestConfigData::vars{'httpd'} || ''
2021 0 0 $$Apache::TestConfigData::vars{'apxs'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
192 0 0 6 $$server{'rev'} and $$server{'rev'} == 2 or IS_MOD_PERL_2_BUILD
0 0 6 $$server{'rev'} and $$server{'rev'} == 2 or IS_MOD_PERL_2_BUILD or $ENV{'MOD_PERL_API_VERSION'}
205 0 6 0 $args || $self
270 0 0 0 ref $class || $class
293 0 0 0 $$vars{'top_dir'} ||= $top_dir
299 0 0 0 $$vars{'src_dir'} ||= $src_dir
301 0 0 0 $$vars{'t_dir'} ||= catfile($$vars{'top_dir'}, 't')
302 0 0 0 $$vars{'serverroot'} ||= $$vars{'t_dir'}
303 0 0 0 $$vars{'documentroot'} ||= catfile($$vars{'serverroot'}, 'htdocs')
304 0 0 0 $self->find_in_inc('pods') || $self->find_in_inc('pod')
0 0 0 $$vars{'perlpod'} ||= $self->find_in_inc('pods') || $self->find_in_inc('pod')
306 0 0 0 $$vars{'perl'} ||= $^X
307 0 0 0 $$vars{'t_conf'} ||= catfile($$vars{'serverroot'}, 'conf')
308 0 0 0 $$vars{'sslca'} ||= catfile($$vars{'t_conf'}, 'ssl', 'ca')
310 0 0 0 $$vars{'t_logs'} ||= catfile($$vars{'serverroot'}, 'logs')
311 0 0 0 $$vars{'t_conf_file'} ||= catfile($$vars{'t_conf'}, 'httpd.conf')
312 0 0 0 $$vars{'t_pid_file'} ||= catfile($$vars{'t_logs'}, 'httpd.pid')
321 0 0 0 $$vars{'servername'} ||= $self->default_servername
323 0 0 0 $$vars{'remote_addr'} ||= $self->our_remote_addr
325 0 0 0 $$vars{'user'} ||= $self->default_user
326 0 0 0 $$vars{'group'} ||= $self->default_group
327 0 0 0 $$vars{'serveradmin'} ||= $self->default_serveradmin
333 0 0 0 $$vars{'maxclients'} ||= $$vars{'minclients'} + 1
346 0 0 0 $$vars{'maxclients_preset'} || $$vars{'minclients'} * 2
369 6 0 0 $$vars{'httpd'} || $$vars{'apxs'}
442 0 0 0 $$self{'vars'}{$mname} ||= $$choices[0]
489 0 0 0 $$vars{'httpd'} ||= $self->default_httpd
626 0 0 0 ref $_ and ref $_ eq 'CODE' or $self->can($_)
656 0 0 0 getgrgid $gid || "#$gid"
0 0 0 $ENV{'APACHE_TEST_GROUP'} || (getgrgid $gid || "#$gid")
665 0 0 0 getgrgid $gid || "#$gid"
676 0 0 0 getpwuid $uid || "#$uid"
0 0 0 $ENV{'APACHE_TEST_USER'} || (getpwuid $uid || "#$uid")
744 0 0 0 $localhost ||= $self->default_localhost
764 11 0 4 $port_memoized || $ENV{'APACHE_TEST_PORT'}
11 4 0 $port_memoized || $ENV{'APACHE_TEST_PORT'} || $$self{'vars'}{'port'}
0 15 0 my $port ||= $port_memoized || $ENV{'APACHE_TEST_PORT'} || $$self{'vars'}{'port'} || 8529
807 0 0 0 $remote_addr ||= Socket::inet_ntoa($iaddr)
827 0 15 0 shift @_ || $$self{'vars'}
996 0 0 0 IS_MOD_PERL_2_BUILD or $ENV{'APACHE_TEST_LIVE_DEV'}
1089 0 0 0 not defined $path or -e $path
1382 0 0 0 $$vars{'proxyssl_url'} ||= $$ssl{'hostport'}
1636 0 0 0 $$conf_opts{'port'} || $Argv{'port'}
1642 0 0 0 $$vars{'apxs'} || $$vars{'httpd'}
1676 0 0 0 not $config or $config < $current
2066 0 0 0 $$vars{'httpd'} or $$Apache::TestConfigData::vars{'httpd'}
0 0 0 $$vars{'httpd'} or $$Apache::TestConfigData::vars{'httpd'} or $$vars{'apxs'}
0 0 0 $$vars{'httpd'} or $$Apache::TestConfigData::vars{'httpd'} or $$vars{'apxs'} or $$Apache::TestConfigData::vars{'apxs'}
2072 0 0 0 $$vars{$_} || $$conf_opts{$_}
2247 0 0 0 $$args{$_} ||= $$Apache::TestConfigData::vars{$_}
2285 0 0 0 -t STDIN or $ENV{'APACHE_TEST_INTERACTIVE_PROMPT_OK'}