Condition Coverage

blib/lib/Amazon/API.pm
Criterion Covered Total %
condition 26 166 15.6


and 3 conditions

line !l l&&!r l&&r condition
559 0 0 0 not ref $response and $response->can("content")
608 0 0 0 ref $content and $serializer
692 0 0 0 $location && $location eq $type
786 0 0 0 $request_shape_name and $request_shape_name ne $shape
792 0 0 0 not $request_shape_name and $self->is_botocore_api
962 0 0 0 $method ne "POST" and not keys %parameters
1000 0 0 0 ref $parameters and &reftype($parameters) eq "HASH"
1009 0 0 0 ref $content and keys %{$content;}
1038 0 0 0 ref $args[0] and &reftype($args[0]) eq "HASH"
1067 0 0 0 &blessed($parameters) and not $self->is_botocore_api
1076 0 0 0 $use_botocore and $self->get_use_paginator
1077 0 0 0 $self->get_paginators && $self->get_paginators->{$action}
1237 0 0 0 $paginator and $use_paginator
1264 0 0 0 $error and ref($error) =~ /Amazon::API::Error/msx
1291 0 0 0 $self->can("refresh_token") and $credentials->refresh_token
1404 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"
1409 2 0 0 ref $parameters->{$key} and &reftype($parameters->{$key}) eq "ARRAY"
1435 0 1 4 $action and not &any(sub {
1439 0 1 4 $version and not &any(sub {
1454 0 0 0 $creds{'aws_secret_access_key'} && $creds{'aws_access_key_id'}
1545 0 0 0 $self->get_logger and $self->get_logger->can($level)
1670 1 0 0 $botocore_metadata and $botocore_metadata->{'globalEndpoint'}

or 2 conditions

line l !l condition
761 0 0 $request //= {}
842 0 0 $self->get_botocore_metadata->{'jsonVersion'} // "1.0"
1310 0 0 $self->get_http_method || 'POST'
1311 0 0 $options{'headers'} || []
1350 0 0 $credentials->get_token || undef
1610 0 1 $self->get_http_method // "POST"
1612 0 1 $self->get_protocol // "https"
1624 0 1 $options{'log_level'} // "info"

or 3 conditions

line l !l&&r !l&&!r condition
478 0 1 0 ref $class || $class
556 0 0 0 $response || $self->get_response
586 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
589 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
601 0 0 0 $decoded_content || $content
633 0 0 0 not $content or $Amazon::API::EVAL_ERROR
718 0 0 0 $action //= $self->get_action
960 0 0 0 $self->get_content_type // $Amazon::API::EMPTY
1036 0 0 0 $self->get_use_botocore // $self->is_botocore_api
1085 0 0 0 $paginator->{'more_results'} //= $paginator->{'output_token'}
1208 0 0 0 $limit // $$result{$paginator->{'limit_key'}}
1316 0 0 0 eval {
1335 0 0 0 $self->get_api or $self->get_target_prefix
1489 1 0 0 ref $self || $self
1561 0 0 1 $self->get_logger || 'Log::Log4perl'->initialized
1569 0 1 0 $self->get_log_layout // $DEFAULT_LAYOUT_PATTERN
1592 0 1 0 $self->get_raise_error // $Amazon::API::TRUE
1593 0 1 0 $self->get_print_error // $Amazon::API::TRUE
1595 0 1 0 $self->get_use_paginator // $Amazon::API::TRUE
1604 1 0 0 $self->get_decode_always or defined $self->get_force_array
1618 0 1 0 $self->get_region || $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || $DEFAULT_REGION
1622 0 0 1 $options{'debug'} || $ENV{'DEBUG'}
0 0 1 my $debug //= $options{'debug'} || $ENV{'DEBUG'}
1675 0 1 0 $self->get_endpoint_prefix || $service
1746 0 0 0 $args{'content_type'} || $self->get_content_type
1755 0 0 0 $self->get_http_method ne "GET" or not defined $content