Condition Coverage

blib/lib/Mojolicious/Plugin/ServerStatus.pm
Criterion Covered Total %
condition 0 40 0.0


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 0 $args->{'counter_file'} and not -f $args->{'counter_file'}
213 0 0 0 $pstatus->{'status'} and $pstatus->{'status'} eq 'A'

or 2 conditions

line l !l condition
21 0 0 $args->{'allow'} ||= ['127.0.0.1', '192.168.0.0/16']
22 0 0 $args->{'path'} ||= '/server-status'
23 0 0 $args->{'counter_file'} ||= '/tmp/counter_file'
24 0 0 $args->{'scoreboard'} ||= '/var/run/server'
80 0 0 $env->{'QUERY_STRING'} || $req->url->query->to_string || ''
92 0 0 $headers->host || ''
0 0 $req->url->path->to_string || ''
118 0 0 shift() || '_'
210 0 0 $json || '{}'
212 0 0 $pstatus ||= {}
277 0 0 $count ||= 1
278 0 0 $bytes ||= 0
285 0 0 $counter ||= 0
286 0 0 $total_bytes ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
223 0 0 0 $pstatus->{'pid'} ||= $pid
269 0 0 0 not $len or $buf != $parent_pid