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
557 0 0 0 not ref $response and $response->can("content")
606 0 0 0 ref $content and $serializer
690 0 0 0 $location && $location eq $type
784 0 0 0 $request_shape_name and $request_shape_name ne $shape
790 0 0 0 not $request_shape_name and $self->is_botocore_api
953 0 0 0 $method ne "POST" and not keys %parameters
988 0 0 0 ref $parameters and &reftype($parameters) eq "HASH"
997 0 0 0 ref $content and keys %{$content;}
1020 0 0 0 ref $args[0] and &reftype($args[0]) eq "HASH"
1041 0 0 0 &blessed($parameters) and not $self->is_botocore_api
1047 0 0 0 $self->get_paginators && $self->get_paginators->{$action}
1048 0 0 0 $paginator && $self->get_use_paginator
1182 0 0 0 $paginator and $use_paginator
1204 0 0 0 $error and ref($error) =~ /Amazon::API::Error/msx
1231 0 0 0 $self->can("refresh_token") and $credentials->refresh_token
1344 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"
1349 2 0 0 ref $parameters->{$key} and &reftype($parameters->{$key}) eq "ARRAY"
1375 0 1 4 $action and not &any(sub {
1379 0 1 4 $version and not &any(sub {
1393 0 0 0 $creds{'aws_secret_access_key'} && $creds{'aws_access_key_id'}
1484 0 0 0 $self->get_logger and $self->get_logger->can($level)
1609 1 0 0 $botocore_metadata and $botocore_metadata->{'globalEndpoint'}

or 2 conditions

line l !l condition
759 0 0 $request //= {}
833 0 0 $self->get_botocore_metadata->{'jsonVersion'} // "1.0"
1250 0 0 $self->get_http_method || 'POST'
1251 0 0 $options{'headers'} || []
1290 0 0 $credentials->get_token || undef
1549 0 1 $self->get_http_method // "POST"
1551 0 1 $self->get_protocol // "https"
1563 0 1 $options{'log_level'} // "info"

or 3 conditions

line l !l&&r !l&&!r condition
476 0 1 0 ref $class || $class
554 0 0 0 $response || $self->get_response
584 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
587 0 0 0 not $decoded_content or $Amazon::API::EVAL_ERROR
599 0 0 0 $decoded_content || $content
631 0 0 0 not $content or $Amazon::API::EVAL_ERROR
716 0 0 0 $action //= $self->get_action
951 0 0 0 $self->get_content_type // $Amazon::API::EMPTY
1060 0 0 0 $paginator->{'more_results'} //= $paginator->{'output_token'}
1153 0 0 0 $limit // $$result{$paginator->{'limit_key'}}
1256 0 0 0 eval {
1275 0 0 0 $self->get_api or $self->get_target_prefix
1428 1 0 0 ref $self || $self
1500 0 0 1 $self->get_logger || 'Log::Log4perl'->initialized
1508 0 1 0 $self->get_log_layout // $DEFAULT_LAYOUT_PATTERN
1531 0 1 0 $self->get_raise_error // $Amazon::API::TRUE
1532 0 1 0 $self->get_print_error // $Amazon::API::TRUE
1534 0 1 0 $self->get_use_paginator // $Amazon::API::TRUE
1543 1 0 0 $self->get_decode_always or defined $self->get_force_array
1557 0 1 0 $self->get_region || $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || $DEFAULT_REGION
1561 0 0 1 $options{'debug'} || $ENV{'DEBUG'}
0 0 1 my $debug //= $options{'debug'} || $ENV{'DEBUG'}
1614 0 1 0 $self->get_endpoint_prefix || $service
1685 0 0 0 $args{'content_type'} || $self->get_content_type
1694 0 0 0 $self->get_http_method ne "GET" or not defined $content