Branch Coverage

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


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 =~ /([^?]*)\?(.*)$/ ? :
147 7 0 unless ($req->header("host"))
148 2 5 $req->uri->_port ? :
242 0 0 if (not length $part or $part eq '.') { }
0 0 elsif ($part eq '..') { }
250 0 0 if $orig_uri =~ m[/$] and not $simple_uri =~ m[/$]
255 1 12 unless $_[0]
261 60 0 defined $value ? :
266 0 108 unless $Net::Amazon::S3::Signature::V4Implementation::a->[0] cmp $Net::Amazon::S3::Signature::V4Implementation::b->[0]
274 21 0 if ($date =~ /^\d{8}T\d{6}Z$/) { }
298 1 21 unless ($date)