Branch Coverage

blib/lib/Paws/Net/RestJsonResponse.pm
Criterion Covered Total %
branch 45 74 60.8


line true false branch
10 0 34 if (defined $headers->{'x-amz-crc32'})
17 0 0 if $crc != $headers->{'x-amz-crc32'}
20 17 17 if ($http_status >= 300) { }
37 12 5 if ($@)
48 5 0 if (exists $struct->{'message'}) { }
0 0 elsif (exists $struct->{'Message'}) { }
54 0 0 if ($struct->{'__type'} eq 'InternalError') { }
61 2 3 if (exists $headers->{'x-amzn-errortype'}) { }
0 3 elsif (exists $struct->{'Code'}) { }
2 1 elsif (exists $struct->{'code'}) { }
83 0 5 if (not defined $value) { }
97 0 0 if (not defined $value) { }
110 0 29 if ($class->does('Paws::API::StrToObjMapParser')) { }
0 29 elsif ($class->does('Paws::API::StrToNativeMapParser')) { }
116 0 148 unless my $meta = $class->meta->get_attribute($att)
118 1 147 $meta->does('ParamInHeader') ? :
0 148 $meta->does('NameInRequest') ? :
131 136 12 if (not $att_type =~ /\[.*\]$/) { }
8 4 elsif (my($type) = $att_type =~ /^ArrayRef\[(.*)\]$/) { }
135 25 111 if ($att_type =~ /\:\:/) { }
138 19 6 if (defined $value)
139 0 19 if (not $value_ref) { }
144 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')) { }
159 89 22 if (defined $value)
160 24 65 if ($att_type eq 'Bool') { }
161 12 12 if ($value eq 'true') { }
12 0 elsif ($value eq 'false') { }
0 0 elsif ($value == 1) { }
177 0 8 if not defined $value and $key ne $att
180 6 2 if ($type =~ /\:\:/) { }
183 0 6 if ($type->does('Paws::API::StrToObjMapParser')) { }
0 6 elsif ($type->does('Paws::API::StrToNativeMapParser')) { }
0 6 elsif ($type->does('Paws::API::MapParser')) { }
193 0 2 if (defined $value)
194 0 0 if ($value_ref eq 'ARRAY') { }