Branch Coverage

blib/lib/Net/Amazon/Signature/V4.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
65 0 1 if (@_ == 1 and ref $_[0] eq 'HASH') { }
71 0 1 lc $self->{'service'} eq 's3' ? :
108 30 63 $req->uri =~ /([^?]*)\?(.*)$/ ? :
117 0 93 unless ($req->header('host'))
121 31 62 unless ($creq_payload_hash)
130 31 62 unless ($amz_date)
133 0 93 if (defined $self->{'security_token'} and not defined $req->header('X-Amz-Security-Token'))
202 36 42 if ($part eq '' or $part eq '.') { }
9 33 elsif ($part eq '..') { }
206 0 33 if ($self->{'no_escape_uri'}) { }
215 3 90 if $orig_uri =~ m[/$] and not $simple_uri =~ m[/$]
219 63 30 unless $_[0]
225 36 6 defined $value ? :
229 0 6 unless $Net::Amazon::Signature::V4::a->[0] cmp $Net::Amazon::Signature::V4::b->[0]
237 93 31 if ($date =~ /^\d{8}T\d{6}Z$/) { }
250 0 124 unless ($date)