Condition Coverage

blib/lib/Dancer2/Core/Request.pm
Criterion Covered Total %
condition 43 59 72.8


and 3 conditions

line !l l&&!r l&&r condition
147 139 5 3 $self->is_behind_proxy and exists $self->env->{'HTTP_X_FORWARDED_HOST'}
185 661 79 7 $self->content_type and $self->content_type =~ m[^multipart/form-data]i
205 1 0 30 $body and length $body > 0
322 227 0 31 wantarray and @_ == 1

or 2 conditions

line l !l condition
131 555 27 $_[0]{'_route_params'} ||= {}
279 25 116 $path || '/'
303 15 0 $part ||= ""
487 21 0 CGI::Deurl::XS::parse_query_string($source) || {}

or 3 conditions

line l !l&&r !l&&!r condition
118 263 27 0 $_[0]{'_params'} ||= $_[0]->_build_params
122 672 664 0 $_[0]{'_body_params'} ||= $_[0]->body_parameters->as_hashref_mixed
165 1 6 7 $_[0]->env->{'HTTP_X_FORWARDED_PROTO'} or $_[0]->env->{'HTTP_X_FORWARDED_PROTOCOL'}
174 7 0 152 $scheme || $self->env->{'psgi.url_scheme'}
179 50 28 719 $_[0]{'data'} ||= $_[0]->deserialize
278 103 38 0 $host || "${server}:$port"
344 12 47 0 $self->{'query_parameters'} ||= do {
366 17 0 0 $_[0]{'route_parameters'} ||= "Hash::MultiValue"->new
379 61 664 0 $self->{'body_parameters'} ||= _decode($self->SUPER::body_parameters)
392 0 3 0 $self->{'merged_parameters'} ||= do {
411 2560 0 21552 XXX || utf8::is_utf8($h)
484 22 485 31 not defined $source or $source eq ""
550 90 486 0 $_[0]{'cookies'} ||= $_[0]->_build_cookies