Condition Coverage

blib/lib/Kossy/Request.pm
Criterion Covered Total %
condition 11 23 47.8


and 3 conditions

line !l l&&!r l&&r condition
18 0 0 29 defined $env and ref $env eq 'HASH'
39 2 0 4 $self->env->{'plack.cookie.parsed'} and $self->env->{'plack.cookie.string'} eq $self->env->{'HTTP_COOKIE'}

or 2 conditions

line l !l condition
193 0 4 $self->{'_base'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
120 1 11 0 $self->env->{'kossy.request.body'} ||= 'Hash::MultiValue'->new(map({&Encode::decode_utf8($_);} @{$self->_body_parameters;}))
126 2 11 0 $self->env->{'kossy.request.query'} ||= 'Hash::MultiValue'->new(map({&Encode::decode_utf8($_);} @{$self->_query_parameters;}))
131 8 11 0 $self->env->{'kossy.request.merged'} ||= do { 'Hash::MultiValue'->new($self->query_parameters->flatten, $self->body_parameters->flatten) }
173 0 0 0 $self->env->{'plack.request.merged'} ||= do { 'Hash::MultiValue'->new(@{$self->_query_parameters;}, @{$self->_body_parameters;}) }
195 0 4 0 $self->{'_base'}{$base} ||= $self->SUPER::base