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'}
210 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 || ''
116 0 0 shift() || '_'
207 0 0 $json || '{}'
209 0 0 $pstatus ||= {}
274 0 0 $count ||= 1
275 0 0 $bytes ||= 0
282 0 0 $counter ||= 0
283 0 0 $total_bytes ||= 0

or 3 conditions

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