Branch Coverage

blib/lib/Net/HTTP/Knork/Request.pm
Criterion Covered Total %
branch 15 62 24.1


line true false branch
56 5 0 if (@_ == 1 and not exists $_[0]{'env'})
64 0 5 if ($value) { }
74 0 0 if ($value) { }
83 0 0 if ($value) { }
93 0 0 if ($value) { }
103 0 0 if ($value) { }
113 0 0 if ($value) { }
123 0 0 if ($value) { }
133 0 5 if ($value) { }
155 0 5 unless (defined $path_info and defined $query_string)
157 0 0 unless $path_info
158 0 0 unless $query_string
167 0 5 if (defined $query_string and length $query_string > 0)
171 5 0 if $path =~ m[^/]
180 0 0 unless $self->env->{'spore.params'}
186 0 0 unless ($value)
190 0 0 unless ($path and $path =~ s/\:$key/$value/)
192 0 0 if $query_string and scalar @params
196 0 0 if $query_string
204 0 5 defined $$env{'spore.userinfo'} ? :
224 0 0 unless $size
279 2 0 if ($path_info and $path_info =~ s/\:$k/$v/)
285 0 0 if ($f_v =~ s/^\:$k/$v/)
293 0 0 if ($h_v =~ s/^\:$k/$v/)
299 0 2 if ($modified == 0)
300 0 0 if (defined $v) { }
309 5 0 if $path_info
312 0 5 if (scalar @$query)
325 0 5 if (keys %$form_data)
334 3 2 if (my $payload = $self->content)
336 3 0 unless $request->header('Content-Type')