Branch Coverage

blib/lib/Paws/Net/RestJsonResponse.pm
Criterion Covered Total %
branch 47 72 65.2


line true false branch
10 0 38 if (defined $headers->{'x-amz-crc32'})
17 0 0 if $crc != $headers->{'x-amz-crc32'}
20 21 17 if ($http_status >= 300) { }
37 12 9 if ($@)
48 5 4 if (exists $struct->{'message'}) { }
0 4 elsif (exists $struct->{'Message'}) { }
56 2 7 if (exists $headers->{'x-amzn-errortype'}) { }
0 7 elsif (exists $struct->{'Code'}) { }
2 5 elsif (exists $struct->{'code'}) { }
78 0 5 if (not defined $value) { }
92 0 0 if (not defined $value) { }
105 0 29 if ($class->does('Paws::API::StrToObjMapParser')) { }
0 29 elsif ($class->does('Paws::API::StrToNativeMapParser')) { }
111 0 148 unless my $meta = $class->meta->get_attribute($att)
113 1 147 $meta->does('ParamInHeader') ? :
0 148 $meta->does('NameInRequest') ? :
126 136 12 if (not $att_type =~ /\[.*\]$/) { }
8 4 elsif (my($type) = $att_type =~ /^ArrayRef\[(.*)\]$/) { }
130 25 111 if ($att_type =~ /\:\:/) { }
133 19 6 if (defined $value)
134 0 19 if (not $value_ref) { }
139 0 19 if ($att_class->does('Paws::API::StrToObjMapParser')) { }
5 14 elsif ($att_class->does('Paws::API::StrToNativeMapParser')) { }
0 14 elsif ($att_class->does('Paws::API::MapParser')) { }
154 89 22 if (defined $value)
155 24 65 if ($att_type eq 'Bool') { }
156 12 12 if ($value eq 'true') { }
12 0 elsif ($value eq 'false') { }
0 0 elsif ($value == 1) { }
172 0 8 if not defined $value and $key ne $att
175 6 2 if ($type =~ /\:\:/) { }
178 0 6 if ($type->does('Paws::API::StrToObjMapParser')) { }
0 6 elsif ($type->does('Paws::API::StrToNativeMapParser')) { }
0 6 elsif ($type->does('Paws::API::MapParser')) { }
188 0 2 if (defined $value)
189 0 0 if ($value_ref eq 'ARRAY') { }