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
138 133 5 3 $self->is_behind_proxy and exists $self->env->{'HTTP_X_FORWARDED_HOST'}
187 1 0 30 $body and length $body > 0
305 221 0 31 wantarray and @_ == 1

or 2 conditions

line l !l condition
122 548 27 $_[0]{'_route_params'} ||= {}
261 25 110 $path || '/'
286 15 0 $part ||= ""
470 21 0 CGI::Deurl::XS::parse_query_string($source) || {}

or 3 conditions

line l !l&&r !l&&!r condition
109 257 27 0 $_[0]{'_params'} ||= $_[0]->_build_params
113 665 651 0 $_[0]{'_body_params'} ||= $_[0]->body_parameters->as_hashref_mixed
156 1 6 7 $_[0]->env->{'HTTP_X_FORWARDED_PROTO'} or $_[0]->env->{'HTTP_X_FORWARDED_PROTOCOL'}
165 7 0 146 $scheme || $self->env->{'psgi.url_scheme'}
170 50 28 706 $_[0]{'data'} ||= $_[0]->deserialize
260 103 32 0 $host || "${server}:$port"
327 12 47 0 $self->{'query_parameters'} ||= do {
349 17 0 0 $_[0]{'route_parameters'} ||= "Hash::MultiValue"->new
362 61 651 0 $self->{'body_parameters'} ||= _decode($self->SUPER::body_parameters)
375 0 3 0 $self->{'merged_parameters'} ||= do {
394 2520 0 21551 XXX || utf8::is_utf8($h)
467 19 481 31 not defined $source or $source eq ""
533 87 479 0 $_[0]{'cookies'} ||= $_[0]->_build_cookies