Branch Coverage

blib/lib/Mojo/Server/Hypnotoad.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
21 0 0 if $c->{'upgrade_timeout'}
24 0 0 if defined $c->{'proxy'}
25 0 0 if defined $c->{'trusted_proxies'}
26 0 0 if $c->{'clients'}
27 0 0 if $c->{'requests'}
37 0 0 if $Mojo::Server::Hypnotoad::Config{'d_pseudofork'}
47 0 0 unless $ENV{'HYPNOTOAD_REV'}++ or exec $^X, $ENV{'HYPNOTOAD_EXE'}
60 0 0 if $ENV{'HYPNOTOAD_TEST'}
63 0 0 if $ENV{'HYPNOTOAD_STOP'}
66 0 0 unless $ENV{'HYPNOTOAD_PID'}
71 0 0 if not $ENV{'HYPNOTOAD_FOREGROUND'} and $ENV{'HYPNOTOAD_REV'} < 3
81 0 0 unless ($self->{'new'} || '') eq $pid
86 0 0 if say shift()
92 0 0 unless my $new = $self->{'new'}
102 0 0 unless my $pid = (shift())->prefork->check_pid
115 0 0 if ($ENV{'HYPNOTOAD_PID'} and $ENV{'HYPNOTOAD_PID'} ne $$)
116 0 0 unless $prefork->healthy == $prefork->workers
120 0 0 unless ($ENV{'HYPNOTOAD_PID'} // "") eq $$
123 0 0 if ($self->{'upgrade'} and not $self->{'finished'})
127 0 0 unless ($self->{'new'})
129 0 0 unless defined(my $pid = $self->{'new'} = fork)
130 0 0 unless $pid
134 0 0 if $self->{'upgrade'} + $ut <= &steady_time()
139 0 0 unless my $pid = (shift())->prefork->check_pid