| line |
true |
false |
branch |
|
224
|
1 |
47 |
unless defined $valid_req_params{$_} |
|
227
|
2 |
17 |
if ($params{'query_params'}) |
|
229
|
1 |
1 |
unless ref $params{'query_params'} eq "HASH" |
|
233
|
1 |
17 |
unless $VALID_METHOD{$params{'method'}} |
|
236
|
1 |
16 |
unless defined $params{'uri'} |
|
249
|
1 |
11 |
if $params{'head_params'} |
|
251
|
3 |
9 |
if $params{'body_params'} |
|
253
|
0 |
12 |
if $params{'content_type'} |
|
261
|
3 |
9 |
if ($params{'body_params'}) |
|
263
|
1 |
2 |
$CANONICAL ? : |
|
266
|
0 |
12 |
if ($params{'raw_body'}) |
|
273
|
0 |
12 |
if ($self->debug) { } |
|
279
|
0 |
0 |
if $self->debug->{'trim_tokens'} |
|
292
|
11 |
1 |
if ($res->is_success) |
|
297
|
10 |
1 |
if ($res->decoded_content) |
|
298
|
9 |
1 |
if substr($res->decoded_content, 0, 1) =~ /[\{\[]/ |
|
367
|
0 |
0 |
unless $VALID_METHOD{$method} |
|
370
|
0 |
0 |
if ($method eq "LIST") |
|
378
|
0 |
0 |
if ($method eq "post" and not @data) |
|
388
|
0 |
0 |
if ($res->is_success) |
|
389
|
0 |
0 |
if (defined $res->decoded_content) |
|
390
|
0 |
0 |
if ($res->header('Content-Type') =~ m[^application/json\b]i) { } |
|
413
|
0 |
0 |
if defined $self->_response |
|
426
|
8 |
1 |
if defined $self->_response |
|
442
|
1 |
1 |
if defined $self->_response |
|
456
|
1 |
1 |
if defined $self->_response |
|
528
|
1 |
28 |
if $self->_require_https and not $self->_uri_host =~ /^https/ |
|
565
|
0 |
16 |
unless $self->_agent_options |
|
570
|
0 |
16 |
if %{$self->head_params_default;} |
|
574
|
16 |
0 |
if $self->ssl_opts |
|
576
|
0 |
16 |
if $self->cookie_jar |
|
586
|
0 |
0 |
if ($self->cookie_jar eq 1) { } |
|
598
|
1 |
16 |
if (ref $path) |
|
602
|
1 |
15 |
if (defined $query_params) |
|
603
|
0 |
1 |
unless ref $query_params eq "HASH" or ref $query_params eq "ARRAY" |
|
608
|
1 |
15 |
if ($path eq '/') { } |
|
|
12 |
3 |
elsif ($path) { } |
|
612
|
1 |
0 |
if $uri_host =~ qr"(\S*)/$" |
|
623
|
1 |
11 |
if $uri_host =~ qr"(\S*)/$" |
|
626
|
10 |
2 |
if $path =~ qr"^/(\S*)" |
|
637
|
4 |
12 |
if defined $template_params |
|
640
|
1 |
14 |
if defined $query_params |
|
643
|
2 |
13 |
unless is_http_uri($uri) or is_https_uri($uri) |
|
655
|
1 |
3 |
unless ref $template_params eq "HASH" |