Branch Coverage

blib/lib/AWS/CLI/Config.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
45 1 2 if ($env_var and exists $ENV{$env_var} and $ENV{$env_var})
52 2 2 if ($credentials and $credentials->$profile_key)
57 2 0 if ($config and $config->$profile_key)
69 0 0 unless -r $path
72 0 0 unless exists $CREDENTIALS->{$profile}
84 1 0 exists $ENV{'AWS_CONFIG_FILE'} && $ENV{'AWS_CONFIG_FILE'} ? :
85 0 1 unless -r $path
90 1 2 unless exists $CONFIG->{$profile}
96 1 1 $^O eq 'MSWin32' ? :
106 0 6 exists $ENV{'AWS_DEFAULT_PROFILE'} && $ENV{'AWS_DEFAULT_PROFILE'} ? :
127 2 6 if $line =~ /^\[(?:profile )?([\w]+)\]/
130 2 6 if not defined $key or $key eq ''
132 1 5 if (length $indent) { }
137 0 5 if keys %{$nested;}
138 4 1 $key && $value ? :