Condition Coverage

blib/lib/Amazon/Credentials.pm
Criterion Covered Total %
condition 80 184 43.4


and 3 conditions

line !l l&&!r l&&r condition
144 16 0 0 $self->get_passkey and $passkey
179 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'}
265 2 2 1 $self->get_source and $self->get_source eq "IAM"
282 1 0 0 not $self->get_container and $self->get_imdsv2_token
320 6 0 13 $creds->{'aws_secret_access_key'} and $creds->{'aws_access_key_id'}
333 13 1 5 $Amazon::Credentials::EVAL_ERROR and not $self->get_error
339 13 3 3 $self->get_error and $self->get_raise_error
342 13 1 2 $self->get_error and $self->get_print_error
371 0 0 3 ref $self->get_order and builtin::reftype($self->get_order) eq "ARRAY"
436 1 0 1 $ENV{'AWS_ACCESS_KEY_ID'} and $ENV{'AWS_SECRET_ACCESS_KEY'}
604 18 0 8 $creds->{'aws_access_key_id'} and $creds->{'aws_secret_access_key'}
677 2 0 0 $self->get_imdsv2 and $self->get_imdsv2_token
796 39 3 3 $self->get_insecure and $self->get_insecure =~ /^2$/msx
822 3 0 0 $self->get_insecure and $self->get_insecure =~ /^2$/msx
907 1 0 0 $self->get_container and $self->get_container eq "ECS"
915 0 0 1 ref $creds and keys %{$creds;}
1021 2 3 0 not $self->get__session_token and $self->get_session_token_required
1091 21 0 0 ref $self->get_decrypt and builtin::reftype($self->get_decrypt) eq "CODE"
1104 54 0 0 ref $self->get_encrypt and builtin::reftype($self->get_encrypt) eq "CODE"
1123 0 0 0 $new_passkey and not ref $new_passkey
1213 0 0 0 $rsp and $rsp->content_type eq "application/json"
1236 16 0 0 $self->get_logger and ref $self->get_logger
1265 0 14 1 ref $self->get_order and builtin::reftype($self->get_order) ne "ARRAY"
1277 11 3 2 not $self->get_profile and &any(sub { /file/msx; } , @{$self->get_order;})
1318 92 0 0 ref $self->get_passkey and builtin::reftype($self->get_passkey) eq "CODE"
1358 0 0 0 $self->get_encryption && $has_crypt_cbc
1361 16 0 0 $self->get_encryption and not $self->get_cipher
1367 16 0 0 $self->get_encryption and not $self->get_passkey
1465 0 0 0 ref $json and $json->{'accessToken'}
1559 0 0 0 $options{'role'} and $options{'account'}

or 2 conditions

line l !l condition
536 4 0 'default region: ' . $region // "undef"
546 14 0 $profile || $self->get_profile || 'default'
620 1 0 $ENV{'AWS_EC2_METADATA_DISABLED'} // ""
854 0 4 $window_interval // 5
968 1 0 $format || "%s %s\n"
972 2 0 $credential_keys->{$_} // ""
1040 24 0 $aws_access_key_id || undef
1054 24 0 $aws_secret_access_key || undef
1073 6 29 $session_token || undef
1160 0 0 $region // ""
1197 0 0 $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || 'us-east-1'
1250 14 4 $self->get_debug // 0
1256 0 18 $self->get_timeout || 2
1281 2 14 $self->get_raise_error // 1
1282 1 15 $self->get_print_error // 1
1524 1 0 $credentials //= \%ENV
1584 0 0 $options{'profile'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
180 0 0 0 $self->get_sso_region || $self->get_region
208 0 5 0 $self->get_region_from_env || $self->get_default_region
219 0 3 13 $debug // $self->get_debug
252 0 0 5 $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'}
317 0 1 18 $creds->{'error'} || $Amazon::Credentials::EVAL_ERROR
326 4 0 9 $creds->{'token'} || $creds->{'aws_session_token'}
489 1 0 1 $Amazon::Credentials::EVAL_ERROR or not $credentials
582 0 2 26 $ini->{'credential_process'} || $section->{'credential_process'}
610 8 1 4 $creds->{'region'} || $region
709 0 0 1 not $creds or $Amazon::Credentials::EVAL_ERROR
721 0 1 0 $uri //= $ENV{'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'}
1092 0 0 0 $passkey || $self->_fetch_passkey
1105 0 0 0 $passkey || $self->_fetch_passkey
1197 0 0 0 $region ||= $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'} || 'us-east-1'
1337 0 0 16 $self->get_encrypt or $self->get_decrypt
1381 0 0 71 $passkey || $self->_fetch_passkey
1440 0 0 0 $home //= $ENV{'HOME'}
1553 0 0 0 not &GetOptions(\%options, @option_specs) or $options{'help'}
0 0 0 not &GetOptions(\%options, @option_specs) or $options{'help'} or $options{'version'}