Branch Coverage

blib/lib/Mojolicious/Plugin/ServerStatus.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
25 0 0 if $args
27 0 0 if ($args->{'allow'}) { }
28 0 0 ref $args->{'allow'} ? :
33 0 0 if (/:/) { }
39 0 0 if (@ipv4)
44 0 0 if (@ipv6)
54 0 0 if ($args->{'scoreboard'})
61 0 0 if ($args->{'counter_file'} and not -f $args->{'counter_file'})
63 0 0 unless open my $fh, '>>:unix', $args->{'counter_file'}
74 0 0 unless ($plugin->allowed($tx->remote_address))
80 0 0 if (($env->{'QUERY_STRING'} || $req->url->query->to_string || '') =~ /\bjson\b/i)
92 0 0 $req->is_secure ? :
0 0 %{$req->env;} ? :
100 0 0 defined $self->req->url->to_abs->userinfo ? :
106 0 0 if ($plugin->conf->{'counter_file'})
116 0 0 unless $self->{'__scoreboard'}
120 0 0 if ($env)
129 0 0 defined $env->{'HTTP_HOST'} ? :
150 0 0 if ($upsince > $seconds)
160 0 0 if ($self->conf->{'counter_file'})
169 0 0 if (my $scoreboard = $self->{'__scoreboard'}) { }
177 0 0 if ($self->skip_ps_command) { }
0 0 elsif ($^O eq 'cygwin') { }
0 0 elsif (not $^O =~ /mswin32/i) { }
185 0 0 if $line =~ /^\D/
187 0 0 if $proc[2] == $parent_pid
191 0 0 $^O =~ /bsd$/ ? :
195 0 0 if $line =~ /^\D/
197 0 0 if $ppid == $parent_pid
213 0 0 if ($pstatus->{'status'} and $pstatus->{'status'} eq 'A') { }
220 0 0 if (defined $pstatus->{'time'})
228 0 0 defined $pstatus->{$_} ? :
253 0 0 if ($address =~ /:/)
254 0 0 unless $self->{'__cidr6'}
257 0 0 unless $self->{'__cidr4'}
264 0 0 unless ($self->{'__counter'})
265 0 0 unless open my $fh, '+<:unix', $self->conf->{'counter_file'}
269 0 0 if (not $len or $buf != $parent_pid)
275 0 0 if (@_) { }
288 0 0 if ($total_bytes + $bytes > 9007199254740992) { }