Condition Coverage

blib/lib/AWS/CLI/Config.pm
Criterion Covered Total %
condition 22 54 40.7


and 3 conditions

line !l l&&!r l&&r condition
52 2 0 3 $env_var and exists $ENV{$env_var}
0 2 1 $env_var and exists $ENV{$env_var} and $ENV{$env_var}
59 2 0 2 $credentials and $credentials->$profile_key
64 0 0 2 $config and $config->$profile_key
78 0 0 0 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'}
93 0 0 1 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'}
113 6 0 0 exists $ENV{'AWS_DEFAULT_PROFILE'} && $ENV{'AWS_DEFAULT_PROFILE'}
149 0 1 4 $key && $value

or 3 conditions

line l !l&&r !l&&!r condition
49 15 10 0 $opt{'key'} || $attr
56 0 4 0 shift() || _default_profile()
73 0 0 0 shift() || _default_profile()
78 0 0 0 $CREDENTIALS ||= _parse(exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? $ENV{'AWS_CONFIG_FILE'} : 'File::Spec'->catfile(_default_dir(), 'credentials'))
83 0 0 0 $CREDENTIALS_PROFILE_OF{$profile} ||= 'AWS::CLI::Config::Profile'->new($CREDENTIALS->{$profile})
88 2 1 0 shift() || _default_profile()
93 2 1 0 $CONFIG ||= _parse(exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? $ENV{'AWS_CONFIG_FILE'} : 'File::Spec'->catfile(_default_dir(), 'config'))
98 0 2 0 $CONFIG_PROFILE_OF{$profile} ||= 'AWS::CLI::Config::Profile'->new($CONFIG->{$profile})
120 0 1 0 shift() || _default_profile()
141 2 0 6 not defined $key or $key eq ''