Condition Coverage

blib/lib/Dancer2/Core/Request.pm
Criterion Covered Total %
condition 40 56 71.4


and 3 conditions

line !l l&&!r l&&r condition
147 133 5 3 $self->is_behind_proxy and exists $self->env->{'HTTP_X_FORWARDED_HOST'}
196 1 0 30 $body and length $body > 0
314 225 0 31 wantarray and @_ == 1

or 2 conditions

line l !l condition
131 551 27 $_[0]{'_route_params'} ||= {}
270 25 110 $path || '/'
295 15 0 $part ||= ""
479 21 0 CGI::Deurl::XS::parse_query_string($source) || {}

or 3 conditions

line l !l&&r !l&&!r condition
118 261 27 0 $_[0]{'_params'} ||= $_[0]->_build_params
122 668 654 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 146 $scheme || $self->env->{'psgi.url_scheme'}
179 50 28 709 $_[0]{'data'} ||= $_[0]->deserialize
269 103 32 0 $host || "${server}:$port"
336 12 47 0 $self->{'query_parameters'} ||= do {
358 17 0 0 $_[0]{'route_parameters'} ||= "Hash::MultiValue"->new
371 61 654 0 $self->{'body_parameters'} ||= _decode($self->SUPER::body_parameters)
384 0 3 0 $self->{'merged_parameters'} ||= do {
403 2532 0 21551 XXX || utf8::is_utf8($h)
476 19 484 31 not defined $source or $source eq ""
542 89 482 0 $_[0]{'cookies'} ||= $_[0]->_build_cookies