Branch Coverage

blib/lib/PAGI/Request.pm
Criterion Covered Total %
branch 72 102 70.5


line true false branch
31 13 0 if exists $CONFIG{$key}
61 0 38 unless defined $str
70 0 39 unless defined $str
71 0 39 $strict ? :
103 51 33 if (lc $pair->[0] eq $name)
113 13 5 if $self->{'scope'}{'pagi.request.headers'}
136 0 14 if %opts
138 0 14 $strict ? :
0 14 $raw ? :
139 6 8 if $self->{'scope'}{$cache_key}
145 0 13 unless length $part
155 0 13 $raw ? :
156 0 13 $raw ? :
200 3 4 if exists $self->{'scope'}{'pagi.request.cookies'}
239 2 10 unless $conn
254 1 12 unless $conn
262 1 3 unless $conn
270 1 3 unless $conn
316 1 2 if ($auth =~ /^Bearer\s+(.+)$/i)
326 2 1 if ($auth =~ /^Basic\s+(.+)$/i)
339 2 7 if (not defined $params and $CONFIG{'path_param_strict'})
350 6 18 exists $opts{'strict'} ? :
351 0 24 if %opts
355 7 16 if ($strict and not exists $params->{$name})
357 5 2 @available ? :
390 1 2 if $self->{'scope'}{'pagi.request.body.read'}
391 0 2 if $self->{'scope'}{'pagi.request.body.stream.created'}
396 0 2 defined $max_bytes ? :
397 2 0 unless (defined $max_bytes)
399 0 2 if (defined $cl)
419 1 12 if $self->{'scope'}{'pagi.request.body.stream.created'}
422 1 11 if $self->{'scope'}{'pagi.request.body.read'}
425 0 11 unless $receive
430 0 13 unless $message and $message->{'type'}
431 1 12 if $message->{'type'} eq "http.disconnect"
434 10 2 unless $message->{'more'}
447 0 1 if %opts
470 0 36 if exists $opts{$key}
472 0 6 if %opts
474 0 6 $strict ? :
0 6 $raw ? :
477 1 5 if $self->{'scope'}{$cache_key}
480 1 4 if ($self->is_multipart)
492 0 6 unless length $part
502 0 6 $raw ? :
503 0 6 $raw ? :
551 0 0 if $self->{'scope'}{'pagi.request.form'} and $self->{'scope'}{'pagi.request.uploads'}
556 4 0 if $boundary
558 0 4 unless $boundary
584 1 3 if $self->{'scope'}{'pagi.request.uploads'}
586 3 0 if ($self->is_multipart)