Branch Coverage

lib/Neo4j/Driver/Result/JSON.pm
Criterion Covered Total %
branch 45 56 87.5


line true false branch
42 107 78 if ref $json->{'results'} eq "ARRAY"
46 81 104 if (@results == 1)
61 0 104 @results ? :
100 107 78 if (ref $json->{'errors'} eq "ARRAY")
103 0 185 if ($json->{'message'})
107 2 183 unless ($params->{'http_header'}{'success'})
115 5 180 if ref $error
125 0 98 if $self->{'result_list'}
161 27 11 if (ref $data eq "HASH" and ref $rest eq "HASH" and ref $rest->{'metadata'} eq "HASH" and $rest->{'self'} and $rest->{'self'} =~ m[/db/[^/]+/node/]u)
168 11 0 if (ref $data eq "HASH" and ref $rest eq "HASH" and ref $rest->{'metadata'} eq "HASH" and $rest->{'self'} and $rest->{'self'} =~ m[/db/[^/]+/relationship/]u)
178 8 295 if (ref $data eq "ARRAY" and ref $rest eq "HASH")
179 0 8 if @$data >> 1 != $rest->{'length'}
191 8 3 $rest->{'directions'}[$r] eq '->' ? :
203 1 8 if (ref $data eq "HASH" and ref $rest eq "HASH" and ref $rest->{'crs'} eq "HASH")
207 2 0 if (ref $data eq "" and ref $rest eq "" and ref $meta eq "HASH" and $meta->{'type'} and $meta->{'type'} =~ /date|time|duration/u)
208 1 1 $meta->{'type'} eq 'duration' ? :
213 95 197 if (ref $data eq "ARRAY" and ref $rest eq "ARRAY")
214 0 95 if @$data != @$rest
215 17 78 if ref $meta ne "ARRAY" or @$data != @$meta
221 8 189 if (ref $data eq "HASH" and ref $rest eq "HASH")
222 0 8 if scalar keys %$data != scalar keys %$rest
223 0 8 if join("", sort(keys %$data)) ne join("", sort(keys %$rest))
224 8 0 if ref $meta ne "HASH" or scalar keys %$data != scalar keys %$meta
231 13 176 if (JSON::MaybeXS::is_bool($data) and JSON::MaybeXS::is_bool($rest))
232 11 2 $data ? :
234 176 0 if (ref $data eq "" and ref $rest eq "")
249 12 202 if $want_jolt and $want_jolt ne "v1"
251 120 82 if $method eq "POST"