Branch Coverage

blib/lib/Net/Amazon/S3/Signature/V4Implementation.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
75 12 3 $req->uri->query_param($X_AMZ_SIGNEDHEADERS) ? :
89 1 0 unless $request->header($X_AMZ_DATE)
92 1 0 unless $request->header($X_AMZ_CONTENT_SHA256)
106 6 0 unless $request->uri->query_param($X_AMZ_DATE)
109 6 0 unless $request->uri->query_param($X_AMZ_ALGORITHM)
112 6 0 unless $request->uri->query_param($X_AMZ_CREDENTIAL)
115 6 0 unless $request->uri->query_param($X_AMZ_EXPIRES)
117 0 6 if $request->uri->query_param($X_AMZ_EXPIRES) > $MAX_EXPIRES
133 6 1 $req->uri =~ /([^?]*)\?(.*)$/ ? :
142 7 0 unless ($req->header('host'))
143 2 5 $req->uri->_port ? :
237 6 12 if (not length $part or $part eq '.') { }
0 12 elsif ($part eq '..') { }
245 0 7 if $orig_uri =~ m[/$] and not $simple_uri =~ m[/$]
250 1 12 unless $_[0]
256 60 0 defined $value ? :
261 0 108 unless $Net::Amazon::S3::Signature::V4Implementation::a->[0] cmp $Net::Amazon::S3::Signature::V4Implementation::b->[0]
269 21 0 if ($date =~ /^\d{8}T\d{6}Z$/) { }
293 1 21 unless ($date)