Branch Coverage

blib/lib/HTTP/API/Client.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
86 0 0 unless $ENV{'HTTP_USERNAME'}
94 0 0 unless $ENV{'HTTP_PASSWORD'}
102 0 0 unless $ENV{'HTTP_AUTH_TOKEN'}
120 0 0 unless $ENV{'HTTP_CHARSET'}
180 0 0 unless $self->retry_config
290 0 0 $base_url ? :
293 0 0 unless $self->retry->{'status'}
295 0 0 unless $self->debug_flags
297 0 0 if (my $pd = $self->pre_defined_data)
300 0 0 if (my $ph = $self->pre_defined_headers)
312 0 0 if ($debug{'in_out'} or $debug{'send_out'})
314 0 0 if ($retry_count and $retry)
324 0 0 if $debug{'response_if_fail'} and $response->is_success
326 0 0 if ($debug_response)
332 0 0 $debug{'response_header_only'} ? :
339 0 0 if $response->is_success
341 0 0 unless (%retry_status)
347 0 0 unless my $pattern = $retry_status{$response->code}
352 0 0 if ($response->decode_content =~ /$pattern/)
382 0 0 if (my $error = "$@")
398 0 0 unless $method =~ /get/i
400 0 0 if ($self->username or $self->password) { }
0 0 elsif ($self->auth_token) { }
413 0 0 if ($method =~ /get/i)
414 0 0 $content ? :
421 0 0 unless ($method =~ /get/i)
436 0 0 if ($error =~ /content must be bytes/)
448 0 0 unless ref $data
451 0 0 unless my $ct = $req->content_type
454 0 0 $ct =~ /json/ ? :
478 0 0 defined $default_value && length $default_value ? :