Branch Coverage

blib/lib/Kossy/Request.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
18 0 30 unless defined $env and ref $env eq "HASH"
36 1 6 unless $self->env->{'HTTP_COOKIE'}
39 4 2 if ($self->env->{'plack.cookie.parsed'} and $self->env->{'plack.cookie.string'} eq $self->env->{'HTTP_COOKIE'})
51 7 0 unless (exists $self->{'request_body_parser'})
83 5 2 if ($self->env->{'kossy.request.parse_json_body'})
91 4 7 unless ($self->env->{'CONTENT_TYPE'})
111 0 4 unless ($self->env->{'plack.request.upload'})
141 10 1 unless ($self->env->{'kossy.request.body_parameters'})
148 11 0 unless ($self->env->{'kossy.request.query_parameters'})
157 0 0 unless ($self->env->{'plack.request.body'})
165 0 0 unless ($self->env->{'plack.request.query'})
184 0 0 if @_ == 0
187 0 0 unless wantarray
202 1 3 $uri->path eq '/' ? :
206 2 2 if ($args)
209 1 3 length $query ? :