Branch Coverage

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


line true false branch
113 9 0 if (-f $self->spore_rx) { }
141 0 9 unless $base_url
169 4 5 if (scalar @_ == 1 and ref $_[0] eq 'HASH') { }
176 8 1 if ($self->has_default_params)
183 0 9 defined $param_spec{'spore_payload'} ? :
188 0 9 if ($method_args{'required_payload'} and not $payload)
191 0 9 if ($payload and not $method =~ /^(?:POST|PUT|PATCH)$/i)
199 4 5 if ($method_args{'required_params'})
201 1 3 unless (grep {$required eq $_;} keys %param_spec)
214 0 3 if defined $param_spec{$_}
217 0 8 if (%param_spec)
218 0 0 if ($self->lax_optionals)
225 1 7 exists $method_args{'base_url'} ? :
230 0 8 $base_url->path eq '/' ? :
273 2 6 if (defined $orig_response)
274 2 0 unless defined $knork_response->raw_body