Condition Coverage

blib/lib/Amazon/API.pm
Criterion Covered Total %
condition 26 163 15.9


and 3 conditions

line !l l&&!r l&&r condition
558 0 0 0 not ref $response and $response->can("content")
607 0 0 0 ref $content and $serializer
691 0 0 0 $location && $location eq $type
785 0 0 0 $request_shape_name and $request_shape_name ne $shape
791 0 0 0 not $request_shape_name and $self->is_botocore_api
961 0 0 0 $method ne "POST" and not keys %parameters
999 0 0 0 ref $parameters and &reftype($parameters) eq "HASH"
1008 0 0 0 ref $content and keys %{$content;}
1031 0 0 0 ref $args[0] and &reftype($args[0]) eq "HASH"
1055 0 0 0 &blessed($parameters) and not $self->is_botocore_api
1061 0 0 0 $self->get_paginators && $self->get_paginators->{$action}
1062 0 0 0 $paginator && $self->get_use_paginator
1218 0 0 0 $paginator and $use_paginator
1240 0 0 0 $error and ref($error) =~ /Amazon::API::Error/msx
1267 0 0 0 $self->can("refresh_token") and $credentials->refresh_token
1380 0 4 1 $parameters and not ref $parameters
0 3 1 $parameters and &reftype($parameters) eq "HASH"
0 0 3 $parameters and &reftype($parameters) eq "ARRAY"
1385 2 0 0 ref $parameters->{$key} and &reftype($parameters->{$key}) eq "ARRAY"
1411 0 1 4 $action and not &any(sub {
1415 0 1 4 $version and not &any(sub {
1430 0 0 0 $creds{'aws_secret_access_key'} && $creds{'aws_access_key_id'}
1521 0 0 0 $self->get_logger and $self->get_logger->can($level)
1646 1 0 0 $botocore_metadata and $botocore_metadata->{'globalEndpoint'}

or 2 conditions

line l !l condition
760 0 0 $request //= {}
841 0 0 $self->get_botocore_metadata->{'jsonVersion'} // "1.0"
1286 0 0 $self->get_http_method || 'POST'
1287 0 0 $options{'headers'} || []
1326 0 0 $credentials->get_token || undef
1586 0 1 $self->get_http_method // "POST"
1588 0 1 $self->get_protocol // "https"
1600 0 1 $options{'log_level'} // "info"

or 3 conditions

line l !l&&r !l&&!r condition
477 0 1 0 ref $class || $class
555 0 0 0 $response || $self->get_response
585 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
588 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
600 0 0 0 $decoded_content || $content
632 0 0 0 not $content or $Amazon::API::EVAL_ERROR
717 0 0 0 $action //= $self->get_action
959 0 0 0 $self->get_content_type // $Amazon::API::EMPTY
1070 0 0 0 $paginator->{'more_results'} //= $paginator->{'output_token'}
1189 0 0 0 $limit // $$result{$paginator->{'limit_key'}}
1292 0 0 0 eval {
1311 0 0 0 $self->get_api or $self->get_target_prefix
1465 1 0 0 ref $self || $self
1537 0 0 1 $self->get_logger || 'Log::Log4perl'->initialized
1545 0 1 0 $self->get_log_layout // $DEFAULT_LAYOUT_PATTERN
1568 0 1 0 $self->get_raise_error // $Amazon::API::TRUE
1569 0 1 0 $self->get_print_error // $Amazon::API::TRUE
1571 0 1 0 $self->get_use_paginator // $Amazon::API::TRUE
1580 1 0 0 $self->get_decode_always or defined $self->get_force_array
1594 0 1 0 $self->get_region || $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || $DEFAULT_REGION
1598 0 0 1 $options{'debug'} || $ENV{'DEBUG'}
0 0 1 my $debug //= $options{'debug'} || $ENV{'DEBUG'}
1651 0 1 0 $self->get_endpoint_prefix || $service
1722 0 0 0 $args{'content_type'} || $self->get_content_type
1731 0 0 0 $self->get_http_method ne "GET" or not defined $content