Branch Coverage

blib/lib/Paws/Net/JsonResponse.pm
Criterion Covered Total %
branch 58 74 78.3


line true false branch
10 3 81 if (defined $headers->{'x-amz-crc32'})
17 0 3 if $crc != $headers->{'x-amz-crc32'}
20 30 54 if ($http_status >= 300) { }
37 12 18 if ($@)
48 12 6 if (exists $struct->{'message'}) { }
0 6 elsif (exists $struct->{'Message'}) { }
57 2 16 if ($code =~ /#/)
73 0 4 if (not defined $value) { }
87 3 6 if (my($array_type) = $class =~ /^HashRef\[ArrayRef\[(.*)\]\]$/) { }
6 0 elsif (my($inner_type) = $class =~ /^HashRef\[(.*)\]$/) { }
97 3 6 if ($is_array) { }
98 0 3 if (not defined $value) { }
106 0 6 if (not defined $value) { }
120 2 110 if ($class->does('Paws::API::StrToObjMapParser')) { }
0 110 elsif ($class->does('Paws::API::StrToNativeMapParser')) { }
126 0 641 unless my $meta = $class->meta->get_attribute($att)
128 0 535 $meta->does('ParamInHeader') ? :
106 535 $meta->does('NameInRequest') ? :
141 502 139 if (not $att_type =~ /\[.*\]$/) { }
107 32 elsif (my($type) = $att_type =~ /^ArrayRef\[(.*)\]$/) { }
145 101 401 if ($att_type =~ /\:\:/) { }
148 29 72 if (defined $value)
149 0 29 if (not $value_ref) { }
154 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')) { }
169 234 167 if (defined $value)
170 9 225 if ($att_type eq 'Bool') { }
171 8 1 if ($value eq 'true') { }
1 0 elsif ($value eq 'false') { }
0 0 elsif ($value == 1) { }
187 10 97 if not defined $value and $key ne $att
190 63 44 if ($type =~ /\:\:/) { }
193 2 61 if ($type->does('Paws::API::StrToObjMapParser')) { }
0 61 elsif ($type->does('Paws::API::StrToNativeMapParser')) { }
0 61 elsif ($type->does('Paws::API::MapParser')) { }
203 5 39 if (defined $value)