Branch Coverage

blib/lib/Apache/TestServer.pm
Criterion Covered Total %
branch 4 92 4.3


line true false branch
74 6 0 if ($$self{'rev'}) { }
93 0 0 unless $$self{'rev'}
113 0 0 if (unlink $file)
138 0 0 unless $Config{$item} and $Config{$item} eq 'define'
142 0 0 if (my $defines = $$self{'config'}{'vars'}{'defines'})
168 0 0 $$self{'run'}{'opts'}{'one-process'} ? :
241 0 0 unless $$opts{'breakpoint'}
251 0 0 if (@breakpoints) { }
268 0 0 if ($debugger eq 'ddd') { }
312 0 0 unless (grep {/^$$opts{'debugger'}/;} keys %debuggers)
333 0 1 unless (open $fh, $file)
340 1 0 if -s $file > 0
353 0 0 if $self->port_available(++$$self{'port_counter'})
367 0 0 unless socket S, Socket::PF_INET(), Socket::SOCK_STREAM(), $proto
369 0 0 unless setsockopt S, Socket::SOL_SOCKET(), Socket::SO_REUSEADDR(), pack('l', 1)
373 0 0 if (bind S, Socket::sockaddr_in($port, Socket::INADDR_ANY())) { }
421 0 0 if ($pid = $self->pid and not $tried_kill++) { }
422 0 0 if (kill 'TERM', $pid) { }
427 0 0 if (not $self->ping)
428 0 0 if ($_ == 1)
429 0 0 if -e $self->pid_file
434 0 0 if ($_ == 1) { }
443 0 0 if ($self->ping) { }
463 0 0 if (--$tries <= 0)
466 0 0 if -e $self->pid_file
471 0 0 if -e $self->pid_file
479 1 0 if ($pid and kill 0, $pid) { }
0 0 elsif (not $self->port_available) { }
492 0 0 -e $log ? :
526 0 0 if ($old_pid == -1)
532 0 0 unless (-x $httpd)
533 0 0 -e $httpd ? :
574 0 0 if ($status)
584 0 0 unless defined(my $pid = fork)
585 0 0 unless ($pid)
587 0 0 if ($status)
602 0 0 if $mpm
618 0 0 if ($self->pid) { }
0 0 elsif ($delta > $timeout) { }
639 0 0 if (my $pid = $self->pid) { }
649 0 0 if ($config->configure_proxy)
658 0 0 if $self->wait_till_is_up($timeout)
676 0 0 !$@ && defined $r ? :
679 0 0 if (&$server_up())
692 0 0 if (&$server_up()) { }
0 0 elsif ($delta > $timeout) { }