line |
true |
false |
branch |
23
|
1 |
18 |
if ($self->{'credential_provider'} and $self->{'credential_provider'} eq 'env') { } |
|
0 |
18 |
elsif ($self->{'credential_provider'} and $self->{'credential_provider'} eq 'metadata') { } |
|
1 |
17 |
elsif ($self->{'credential_provider'} and $self->{'credential_provider'} eq 'ecs_container') { } |
34
|
1 |
16 |
unless $self->{'aws_access_key_id'} |
35
|
1 |
15 |
unless $self->{'aws_secret_access_key'} |
51
|
16 |
1 |
unless defined $self->secure |
52
|
8 |
9 |
unless defined $self->ua |
53
|
16 |
1 |
unless defined $self->debug |
54
|
16 |
1 |
unless defined $self->virtual_host |
56
|
13 |
4 |
unless defined $self->{'signature_version'} |
57
|
0 |
17 |
if ($self->{'signature_version'} == 4 and not $self->{'region'}) |
69
|
0 |
17 |
unless eval "require $signer_class" |
71
|
3 |
14 |
if ($version == 2) { } |
|
14 |
0 |
elsif ($version == 4) { } |
95
|
16 |
42 |
if (@_) { } |
104
|
17 |
20 |
if (@_) { } |
113
|
8 |
36 |
if (@_) { } |
122
|
16 |
39 |
if (@_) { } |
131
|
0 |
17 |
if $self->{'debug'} |
133
|
0 |
17 |
if $self->{'debug'} |
167
|
2 |
2 |
if ($self->_looks_like_special_case_error($res)) |
180
|
0 |
2 |
unless $key and length $key |
182
|
0 |
2 |
if ($headers->{'acl_short'}) |
188
|
0 |
2 |
if (ref $content eq 'SCALAR') { } |
196
|
0 |
2 |
if (ref $content) { } |
213
|
0 |
2 |
unless $bucket |
217
|
2 |
0 |
if (%$opt) |
270
|
0 |
0 |
if ($region eq 'us-east-1') { } |
292
|
1 |
8 |
unless defined $bucket |
293
|
1 |
7 |
unless defined $key |
295
|
6 |
1 |
if ($self->{'signature_version'} == 4) { } |
297
|
0 |
6 |
$self->secure ? : |
304
|
0 |
6 |
$self->virtual_host ? : |
320
|
0 |
0 |
if (not grep({$policy_name eq $_;} "private", "public-read", "public-read-write", "authenticated-read")) |
330
|
0 |
17 |
unless $method |
331
|
0 |
17 |
unless defined $resource |
332
|
0 |
17 |
if (ref $resource ne "Amazon::S3::Thin::Resource") |
348
|
0 |
17 |
$self->secure ? : |
352
|
16 |
1 |
if ($self->{'signature_version'} == 4) { } |
353
|
7 |
9 |
if ($self->virtual_host) { } |
364
|
17 |
0 |
unless ($request->header("Authorization")) |