Branch Coverage

blib/lib/Net/HTTP/Knork/Request.pm
Criterion Covered Total %
branch 14 44 31.8


line true false branch
56 8 0 if (@_ == 1 and not exists $_[0]{'env'})
64 0 16 if ($value) { }
127 0 8 unless (defined $path_info and defined $query_string)
137 0 8 if (defined $query_string and length $query_string > 0)
141 8 0 if $path =~ m[^/]
150 0 0 unless $self->env->{'spore.params'}
156 0 0 unless ($value)
160 0 0 unless ($path and $path =~ s/\:$key/$value/)
162 0 0 if $query_string and scalar @params
166 0 0 if $query_string
174 0 8 defined $$env{'spore.userinfo'} ? :
194 0 0 unless $size
249 3 0 if ($path_info and $path_info =~ s/\:$k/$v/)
255 0 0 if ($f_v =~ s/^\:$k/$v/)
263 0 0 if ($h_v =~ s/^\:$k/$v/)
269 0 3 if ($modified == 0)
270 0 0 if (defined $v) { }
279 8 0 if $path_info
282 0 8 if (scalar @$query)
295 0 8 if (keys %$form_data)
304 4 4 if (my $payload = $self->content)
306 4 0 unless $request->header('Content-Type')