Condition Coverage

blib/lib/AWS/CLI/Config.pm
Criterion Covered Total %
condition 21 51 41.1


and 3 conditions

line !l l&&!r l&&r condition
45 2 3 0 $env_var and exists $ENV{$env_var}
0 3 0 $env_var and exists $ENV{$env_var} and $ENV{$env_var}
52 2 0 2 $credentials and $credentials->$profile_key
57 0 0 2 $config and $config->$profile_key
84 0 1 0 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'}
106 6 0 0 exists $ENV{'AWS_DEFAULT_PROFILE'} && $ENV{'AWS_DEFAULT_PROFILE'}
138 0 1 4 $key && $value

or 3 conditions

line l !l&&r !l&&!r condition
42 15 10 0 $opt{'key'} || $attr
49 0 4 0 shift() || _default_profile()
66 0 0 0 shift() || _default_profile()
71 0 0 0 $CREDENTIALS ||= sub { my $path = 'File::Spec'->catfile(_default_dir(), 'credentials'); return {} unless -r $path; return _parse($path); } ->()
73 0 0 0 $CREDENTIALS_PROFILE_OF{$profile} ||= 'AWS::CLI::Config::Profile'->_new($CREDENTIALS->{$profile})
78 2 1 0 shift() || _default_profile()
88 2 1 0 $CONFIG ||= sub { my $path = exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? $ENV{'AWS_CONFIG_FILE'} : 'File::Spec'->catfile(_default_dir(), 'config'); return {} unless -r $path; return _parse($path); } ->()
91 0 2 0 $CONFIG_PROFILE_OF{$profile} ||= 'AWS::CLI::Config::Profile'->_new($CONFIG->{$profile})
111 0 1 0 shift() || _default_profile()
130 2 0 6 not defined $key or $key eq ''