Branch Coverage

blib/lib/Paws/Net/XMLResponse.pm
Criterion Covered Total %
branch 87 120 72.5


line true false branch
10 0 270 if (defined $headers->{'x-amz-crc32'})
17 0 0 if $crc != $headers->{'x-amz-crc32'}
20 24 246 if ($http_status >= 300) { }
31 12 12 if ($@)
42 4 8 if (exists $struct->{'Errors'}) { }
7 1 elsif (exists $struct->{'Error'}) { }
50 11 1 if (exists $error->{'Code'}) { }
56 7 5 if (exists $struct->{'RequestId'}) { }
4 1 elsif (exists $struct->{'RequestID'}) { }
0 1 elsif (exists $headers->{'x-amzn-requestid'}) { }
91 3 0 if ($value_ref eq 'HASH')
92 0 3 if (exists $value->{'member'}) { }
3 0 elsif (exists $value->{'entry'}) { }
0 0 elsif (keys %$value == 1) { }
104 3 0 if ($value_ref eq 'ARRAY') { }
0 0 elsif ($value_ref eq 'HASH') { }
117 6 0 if ($value_ref eq 'HASH')
118 0 6 if (exists $value->{'member'}) { }
6 0 elsif (exists $value->{'entry'}) { }
0 0 elsif (keys %$value == 1) { }
134 3 3 if ($value_ref eq 'ARRAY') { }
3 0 elsif ($value_ref eq 'HASH') { }
0 0 elsif (not defined $value) { }
147 0 2219 if ($class->does('Paws::API::StrToObjMapParser')) { }
0 2219 elsif ($class->does('Paws::API::StrToNativeMapParser')) { }
153 0 10463 unless my $meta = $class->meta->get_attribute($att)
155 0 3846 $meta->does('ParamInHeader') ? :
6617 3846 $meta->does('NameInRequest') ? :
169 9730 733 if (not $att_type =~ /\[.*\]$/) { }
709 24 elsif (my($type) = $att_type =~ /^ArrayRef\[(.*)\]$/) { }
173 325 9405 if ($att_type =~ /\:\:/) { }
176 135 190 if (defined $value)
177 0 135 if (not $value_ref) { }
182 6 129 if ($att_class->does('Paws::API::StrToObjMapParser')) { }
3 126 elsif ($att_class->does('Paws::API::StrToNativeMapParser')) { }
5 121 elsif ($att_class->does('Paws::API::MapParser')) { }
191 3 2 if ($value_ref eq 'HASH')
192 0 3 if (exists $value->{'member'}) { }
2 1 elsif (exists $value->{'entry'}) { }
0 1 elsif (keys %$value == 1) { }
213 8497 908 if (defined $value)
214 174 8323 if ($att_type eq 'Bool') { }
215 55 119 if ($value eq 'true') { }
117 2 elsif ($value eq 'false') { }
2 0 elsif ($value == 1) { }
231 377 332 if not defined $value and $key ne $att
234 345 364 if ($value_ref eq 'HASH')
235 177 168 if (exists $value->{'member'}) { }
0 168 elsif (exists $value->{'entry'}) { }
162 6 elsif (keys %$value == 1) { }
247 588 121 if ($type =~ /\:\:/) { }
251 285 303 if (not defined $value) { }
168 135 elsif ($value_ref eq 'ARRAY') { }
135 0 elsif ($value_ref eq 'HASH') { }
259 0 588 if ($type->does('Paws::API::StrToObjMapParser')) { }
0 588 elsif ($type->does('Paws::API::StrToNativeMapParser')) { }
0 588 elsif ($type->does('Paws::API::MapParser')) { }
269 57 64 if (defined $value) { }
270 35 22 if ($value_ref eq 'ARRAY') { }
276 1 63 if $att_is_required