Branch Coverage

blib/lib/Paws/Net/JsonResponse.pm
Criterion Covered Total %
branch 59 76 77.6


line true false branch
10 3 77 if (defined $headers->{'x-amz-crc32'})
17 0 3 if $crc != $headers->{'x-amz-crc32'}
20 26 54 if ($http_status >= 300) { }
37 12 14 if ($@)
48 12 2 if (exists $struct->{'message'}) { }
0 2 elsif (exists $struct->{'Message'}) { }
54 2 0 if ($struct->{'__type'} eq 'InternalError') { }
62 2 12 if ($code =~ /#/)
78 0 4 if (not defined $value) { }
92 3 6 if (my($array_type) = $class =~ /^HashRef\[ArrayRef\[(.*)\]\]$/) { }
6 0 elsif (my($inner_type) = $class =~ /^HashRef\[(.*)\]$/) { }
102 3 6 if ($is_array) { }
103 0 3 if (not defined $value) { }
111 0 6 if (not defined $value) { }
125 2 110 if ($class->does('Paws::API::StrToObjMapParser')) { }
0 110 elsif ($class->does('Paws::API::StrToNativeMapParser')) { }
131 0 637 unless my $meta = $class->meta->get_attribute($att)
133 0 535 $meta->does('ParamInHeader') ? :
102 535 $meta->does('NameInRequest') ? :
146 498 139 if (not $att_type =~ /\[.*\]$/) { }
107 32 elsif (my($type) = $att_type =~ /^ArrayRef\[(.*)\]$/) { }
150 101 397 if ($att_type =~ /\:\:/) { }
153 29 72 if (defined $value)
154 0 29 if (not $value_ref) { }
159 6 23 if ($att_class->does('Paws::API::StrToObjMapParser')) { }
4 19 elsif ($att_class->does('Paws::API::StrToNativeMapParser')) { }
0 19 elsif ($att_class->does('Paws::API::MapParser')) { }
174 234 163 if (defined $value)
175 9 225 if ($att_type eq 'Bool') { }
176 8 1 if ($value eq 'true') { }
1 0 elsif ($value eq 'false') { }
0 0 elsif ($value == 1) { }
192 10 97 if not defined $value and $key ne $att
195 63 44 if ($type =~ /\:\:/) { }
198 2 61 if ($type->does('Paws::API::StrToObjMapParser')) { }
0 61 elsif ($type->does('Paws::API::StrToNativeMapParser')) { }
0 61 elsif ($type->does('Paws::API::MapParser')) { }
208 5 39 if (defined $value)