Branch Coverage

blib/lib/AWS/CLI/Config.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
52 1 2 if ($env_var and exists $ENV{$env_var} and $ENV{$env_var})
59 2 2 if ($credentials and $credentials->$profile_key)
64 2 0 if ($config and $config->$profile_key)
78 0 0 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? :
81 0 0 unless exists $CREDENTIALS->{$profile}
93 1 0 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? :
96 1 2 unless exists $CONFIG->{$profile}
103 1 1 $^O eq 'MSWin32' ? :
113 0 6 exists $ENV{'AWS_DEFAULT_PROFILE'} && $ENV{'AWS_DEFAULT_PROFILE'} ? :
125 0 1 unless -r $file
138 2 6 if $line =~ /^\[(?:profile )?([\w]+)\]/
141 2 6 if not defined $key or $key eq ''
143 1 5 if (length $indent) { }
148 0 5 if keys %{$nested;}
149 4 1 $key && $value ? :
165 0 6 @_ > 1 ? :
6 0 @_ ? :
173 4 5 if $AUTOLOAD =~ /DESTROY/