Condition Coverage

blib/lib/PAGI/Request.pm
Criterion Covered Total %
condition 50 76 65.7


and 3 conditions

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

or 2 conditions

line l !l condition
52 9 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 52 0 $self->{'scope'}{'headers'} // []
116 5 0 $self->{'scope'}{'headers'} // []
134 0 15 delete $opts{'strict'} // 0
135 0 15 delete $opts{'raw'} // 0
147 14 0 $key //= ""
148 14 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 21 7 $params // {}
370 5 2 $self->{'scope'}{'state'} // {}
420 12 0 $message->{'body'} // ""
433 0 1 delete $opts{'strict'} // 0
451 0 6 delete $opts{'strict'} // 0
452 0 6 delete $opts{'raw'} // 0
481 6 0 $key //= ""
482 6 0 $val //= ""
541 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]