Branch Coverage

blib/lib/Test/Httpd/Apache2.pm
Criterion Covered Total %
branch 1 68 1.4


line true false branch
17 0 1 $^O eq 'MSWin32' ? :
73 0 0 @_ == 1 ? :
75 0 0 unless ($self->server_root)
78 0 0 unless $self->listen
81 0 0 if $self->auto_start
88 0 0 if $self->pid
94 0 0 if $self->pid
100 0 0 if (not defined $pid) { }
0 0 elsif ($pid == 0) { }
111 0 0 if my $sock = 'IO::Socket::INET'->new('PeerAddr', do { $self->listen =~ /:/ ? $self->listen : "127.0.0.1:@{[$self->listen];}" }, 'Proto', 'tcp')
112 0 0 $self->listen =~ /:/ ? :
117 0 0 if (waitpid($pid, 1) == $pid)
118 0 0 if (open my $fh, '<', "@{[$self->tmpdir];}/error_log")
126 0 0 if ($^O eq 'MSWin32')
128 0 0 unless open my $fh, '<', $pidfile
138 0 0 unless $self->pid
140 0 0 if ($^O eq 'MSWin32') { }
160 0 0 if ($mod eq 'authz_host' and $self->get_httpd_version =~ /2\.0\./)
163 0 0 if ($static_mods{$mod}) { }
0 0 elsif ($dynamic_mods{$mod}) { }
173 0 0 $dso_path ? :
180 0 0 $^O ne 'MSWin32' && $< == 0 ? :
194 0 0 unless open my $fh, '>', $self->conf_file
208 0 0 unless my $lines = $self->_read_cmd($self->httpd, '-v')
210 0 0 unless $lines =~ m[Apache\/([0-9]+\.[0-9\.]+)]
219 0 0 unless my $lines = $self->_read_cmd($self->httpd, '-l')
223 0 0 if ($line =~ /^\s+mod_(.*)\.c/)
233 0 0 unless (exists $$self{'_dso_path'})
236 0 0 unless grep {$_ eq 'so';} @{$self->get_static_modules;}
239 0 0 if (my $lines = $self->_read_cmd($self->apxs, '-q', 'LIBEXECDIR')) { }
254 0 0 if (my $dir = $self->get_dso_path)
256 0 0 if $n =~ m[/((?:mod_|lib)([^/]+?)\.so)$]
268 0 0 unless my $pid = open2($rfh, $wfh, @cmd)
275 0 0 if ($? != 0)