Branch Coverage

blib/lib/Net/HTTP/Knork.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
117 9 0 if (-f $self->spore_rx) { }
145 0 9 unless $base_url
173 4 5 if (scalar @_ == 1 and ref $_[0] eq 'HASH') { }
180 8 1 if ($self->has_default_params)
187 0 9 defined $param_spec{'spore_payload'} ? :
192 0 9 if ($method_args{'required_payload'} and not $payload)
195 0 9 if ($payload and not $method =~ /^(?:POST|PUT|PATCH)$/i)
203 4 5 if ($method_args{'required_params'})
205 1 3 unless (grep {$required eq $_;} keys %param_spec)
218 0 3 if defined $param_spec{$_}
221 0 8 if (%param_spec)
222 0 0 if ($self->lax_optionals)
229 1 7 exists $method_args{'base_url'} ? :
234 0 8 $base_url->path eq '/' ? :
277 2 6 if (defined $orig_response)
278 2 0 unless defined $knork_response->raw_body