Branch Coverage

blib/lib/Net/Amazon/Signature/V4.pm
Criterion Covered Total %
branch 25 34 73.5


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'))
118 0 0 $req->uri->_port ? :
122 31 62 unless ($creq_payload_hash)
131 31 62 unless ($amz_date)
134 0 93 if (defined $self->{'security_token'} and not defined $req->header('X-Amz-Security-Token'))
203 36 42 if ($part eq '' or $part eq '.') { }
9 33 elsif ($part eq '..') { }
207 0 33 if ($self->{'no_escape_uri'}) { }
216 3 90 if $orig_uri =~ m[/$] and not $simple_uri =~ m[/$]
220 63 30 unless $_[0]
226 36 6 defined $value ? :
230 0 6 unless $Net::Amazon::Signature::V4::a->[0] cmp $Net::Amazon::Signature::V4::b->[0]
238 93 31 if ($date =~ /^\d{8}T\d{6}Z$/) { }
251 0 124 unless ($date)