Branch Coverage

blib/lib/Mojolicious/Plugin/ServerStatus.pm
Criterion Covered Total %
branch 0 78 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;} ? :
105 0 0 if ($plugin->conf->{'counter_file'})
114 0 0 unless $self->{'__scoreboard'}
118 0 0 if ($env)
126 0 0 defined $env->{'HTTP_HOST'} ? :
147 0 0 if ($upsince > $seconds)
157 0 0 if ($self->conf->{'counter_file'})
166 0 0 if (my $scoreboard = $self->{'__scoreboard'}) { }
174 0 0 if ($self->skip_ps_command) { }
0 0 elsif ($^O eq 'cygwin') { }
0 0 elsif (not $^O =~ /mswin32/i) { }
182 0 0 if $line =~ /^\D/
184 0 0 if $proc[2] == $parent_pid
188 0 0 $^O =~ /bsd$/ ? :
192 0 0 if $line =~ /^\D/
194 0 0 if $ppid == $parent_pid
210 0 0 if ($pstatus->{'status'} and $pstatus->{'status'} eq 'A') { }
217 0 0 if (defined $pstatus->{'time'})
225 0 0 defined $pstatus->{$_} ? :
250 0 0 if ($address =~ /:/)
251 0 0 unless $self->{'__cidr6'}
254 0 0 unless $self->{'__cidr4'}
261 0 0 unless ($self->{'__counter'})
262 0 0 unless open my $fh, '+<:unix', $self->conf->{'counter_file'}
266 0 0 if (not $len or $buf != $parent_pid)
272 0 0 if (@_) { }
285 0 0 if ($total_bytes + $bytes > 9007199254740992) { }