Condition Coverage

blib/lib/Amazon/Credentials.pm
Criterion Covered Total %
condition 79 176 44.8


and 3 conditions

line !l l&&!r l&&r condition
143 16 0 0 $self->get_passkey and $passkey
178 16 0 0 $self->get_sso_role_name and $self->get_sso_account_id
189 16 0 0 $options->{'aws_secret_access_key'} && $options->{'aws_access_key_id'}
267 2 2 1 $self->get_source and $self->get_source eq "IAM"
284 1 0 0 not $self->get_container and $self->get_imdsv2_token
322 6 0 13 $creds->{'aws_secret_access_key'} and $creds->{'aws_access_key_id'}
335 13 1 5 $Amazon::Credentials::EVAL_ERROR and not $self->get_error
341 13 3 3 $self->get_error and $self->get_raise_error
344 13 1 2 $self->get_error and $self->get_print_error
373 0 0 3 ref $self->get_order and &reftype(scalar $self->get_order) eq "ARRAY"
438 1 0 1 $ENV{'AWS_ACCESS_KEY_ID'} and $ENV{'AWS_SECRET_ACCESS_KEY'}
607 18 0 8 $creds->{'aws_access_key_id'} and $creds->{'aws_secret_access_key'}
680 2 0 0 $self->get_imdsv2 and $self->get_imdsv2_token
798 39 3 3 $self->get_insecure and $self->get_insecure =~ /^2$/msx
826 3 0 0 $self->get_insecure and $self->get_insecure =~ /^2$/msx
915 1 0 0 $self->get_container and $self->get_container eq "ECS"
923 0 0 1 ref $creds and keys %{$creds;}
1032 2 3 0 not $self->get__session_token and $self->get_session_token_required
1102 21 0 0 ref $self->get_decrypt and &reftype(scalar $self->get_decrypt) eq "CODE"
1115 54 0 0 ref $self->get_encrypt and &reftype(scalar $self->get_encrypt) eq "CODE"
1134 0 0 0 $new_passkey and not ref $new_passkey
1229 0 0 0 $rsp and $rsp->content_type eq "application/json"
1255 16 0 0 $self->get_logger and ref $self->get_logger
1286 0 14 1 ref $self->get_order and &reftype(scalar $self->get_order) ne "ARRAY"
1298 11 3 2 not $self->get_profile and &any(sub { /file/msx; } , @{$self->get_order;})
1339 92 0 0 ref $self->get_passkey and &reftype(scalar $self->get_passkey) eq "CODE"
1379 0 0 0 $self->get_encryption && $has_crypt_cbc
1382 16 0 0 $self->get_encryption and not $self->get_cipher
1388 16 0 0 $self->get_encryption and not $self->get_passkey
1486 0 0 0 ref $json and $json->{'accessToken'}
1569 0 0 0 $options{'role'} and $options{'account'}

or 2 conditions

line l !l condition
538 4 0 "default region: " . $region // "undef"
548 14 0 $profile || $self->get_profile || 'default'
859 0 4 $window_interval // 5
976 1 0 $format || "%s %s\n"
981 2 0 $credential_keys->{$_} // ""
1051 24 0 $aws_access_key_id || undef
1065 24 0 $aws_secret_access_key || undef
1084 6 29 $session_token || undef
1173 0 0 $region // ""
1211 0 0 $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || 'us-east-1'
1269 14 4 $self->get_debug // 0
1275 0 18 $self->get_timeout || 2
1302 2 14 $self->get_raise_error // 1
1303 1 15 $self->get_print_error // 1
1536 1 0 $credentials //= \%ENV
1591 0 0 $options{'profile'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
179 0 0 0 $self->get_sso_region || $self->get_region
209 0 5 0 $self->get_region_from_env || $self->get_default_region
221 0 3 13 $debug // $self->get_debug
254 0 0 5 $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'}
319 0 1 18 $creds->{'error'} || $Amazon::Credentials::EVAL_ERROR
328 4 0 9 $creds->{'token'} || $creds->{'aws_session_token'}
491 1 0 1 $Amazon::Credentials::EVAL_ERROR or not $credentials
585 0 2 26 $ini->{'credential_process'} || $section->{'credential_process'}
614 8 1 4 $creds->{'region'} || $region
712 0 0 1 not $creds or $Amazon::Credentials::EVAL_ERROR
724 0 1 0 $uri //= $ENV{'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'}
1103 0 0 0 $passkey || $self->_fetch_passkey
1116 0 0 0 $passkey || $self->_fetch_passkey
1211 0 0 0 $region ||= $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || 'us-east-1'
1358 0 0 16 $self->get_encrypt or $self->get_decrypt
1402 0 0 71 $passkey || $self->_fetch_passkey
1461 0 0 0 $home //= $ENV{'HOME'}