Condition Coverage

blib/lib/PAGI/Request.pm
Criterion Covered Total %
condition 52 78 66.6


and 3 conditions

line !l l&&!r l&&r condition
339 20 7 2 not defined $params and $CONFIG{'path_param_strict'}
355 6 10 7 $strict and not exists $params->{$name}
430 0 0 13 $message and $message->{'type'}
551 4 0 0 $self->{'scope'}{'pagi.request.form'} and $self->{'scope'}{'pagi.request.uploads'}

or 2 conditions

line l !l condition
52 8 3 +(shift())->{'scope'}{'query_string'} // ""
53 1 2 +(shift())->{'scope'}{'scheme'} // "http"
54 2 2 +(shift())->{'scope'}{'http_version'} // "1.1"
85 20 0 $self->header("content-type") // ""
102 54 0 $self->{'scope'}{'headers'} // []
116 5 0 $self->{'scope'}{'headers'} // []
134 0 14 delete $opts{'strict'} // 0
135 0 14 delete $opts{'raw'} // 0
147 13 0 $key //= ""
148 13 0 $val //= ""
202 3 1 $self->header("cookie") // ""
214 9 0 (shift())->method // ""
215 9 0 (shift())->method // ""
216 7 0 (shift())->method // ""
217 7 0 (shift())->method // ""
218 7 0 (shift())->method // ""
219 7 0 (shift())->method // ""
220 7 0 (shift())->method // ""
315 2 1 $self->header("authorization") // ""
325 2 1 $self->header("authorization") // ""
343 20 7 $params // {}
377 23 14 $self->{'scope'}{'pagi.stash'} //= {}
383 11 2 $self->{'scope'}{'state'} // {}
433 12 0 $message->{'body'} // ""
446 0 1 delete $opts{'strict'} // 0
464 0 6 delete $opts{'strict'} // 0
465 0 6 delete $opts{'raw'} // 0
494 6 0 $key //= ""
495 6 0 $val //= ""
554 4 0 $self->header("content-type") // ""

or 3 conditions

line l !l&&r !l&&!r condition
51 3 0 1 $s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}
284 1 1 1 $ct eq 'application/x-www-form-urlencoded' || $ct =~ m[^multipart/form-data]