Condition Coverage

blib/lib/Plack/Request.pm
Criterion Covered Total %
condition 22 33 66.6


and 3 conditions

line !l l&&!r l&&r condition
22 0 0 68 defined $env and ref $env eq "HASH"
59 1 0 11 $self->env->{'plack.cookie.parsed'} and $self->env->{'plack.cookie.string'} eq $self->env->{'HTTP_COOKIE'}
192 10 2 9 defined $self->env->{'QUERY_STRING'} and $self->env->{'QUERY_STRING'} ne ""

or 2 conditions

line l !l condition
190 8 13 $self->env->{'PATH_INFO'} || ''
212 14 16 $env->{'psgi.url_scheme'} || 'http'
10 20 $env->{'SCRIPT_NAME'} || '/'

or 3 conditions

line l !l&&r !l&&!r condition
119 2 25 0 $self->env->{'plack.request.query_parameters'} ||= parse_urlencoded_arrayref($self->env->{'QUERY_STRING'})
124 0 18 0 $self->env->{'plack.request.query'} ||= "Hash::MultiValue"->new(@{$self->_query_parameters;})
129 0 2 1 $self->env->{'plack.request.body'} ||= "Hash::MultiValue"->new(@{$self->_body_parameters;})
136 8 9 0 $self->env->{'plack.request.merged'} ||= do { "Hash::MultiValue"->new(@{$self->_query_parameters;}, @{$self->_body_parameters;}) }
212 25 5 0 $env->{'HTTP_HOST'} || ($env->{'SERVER_NAME'} || '') . ':' . ($env->{'SERVER_PORT'} || 80)
225 0 20 0 $self->{'request_body_parser'} ||= $self->_build_body_parser