Branch Coverage

lib/Neo4j/Driver/Result/JSON.pm
Criterion Covered Total %
branch 55 72 81.9


line true false branch
35 15 185 unless $TRUE
40 127 70 if ref $json->{'results'} eq "ARRAY"
44 100 97 if (@results == 1)
59 2 95 @results ? :
99 129 71 if (ref $json->{'errors'} eq "ARRAY")
102 0 200 if ($json->{'message'})
106 1 199 unless ($params->{'http_header'}{'success'})
114 4 196 if ref $error
124 2 115 if $self->{'result_list'}
159 32 12 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/])
162 20 12 if ref $meta eq "HASH"
163 1 31 if $cypher_types->{'init'}
166 12 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/])
173 11 1 if ref $meta eq "HASH"
174 0 12 if $cypher_types->{'init'}
178 10 349 if (ref $data eq "ARRAY" and ref $rest eq "HASH")
179 0 10 if @$data >> 1 != $rest->{'length'}
186 13 10 if ref $meta eq "ARRAY"
194 3 10 $rest->{'directions'}[$r] eq '<-' ? :
197 8 5 if ref $meta eq "ARRAY"
201 0 10 $cypher_types->{'init'} ? :
205 0 8 if (ref $data eq "HASH" and ref $rest eq "HASH" and ref $rest->{'crs'} eq "HASH")
207 0 0 if $cypher_types->{'init'}
210 0 0 if (ref $data eq "" and ref $rest eq "" and ref $meta eq "HASH" and $meta->{'type'} and $meta->{'type'} =~ /date|time|duration/)
212 0 0 if $cypher_types->{'init'}
216 111 238 if (ref $data eq "ARRAY" and ref $rest eq "ARRAY")
217 0 111 if @$data != @$rest
218 17 94 if ref $meta ne "ARRAY" or @$data != @$meta
224 8 230 if (ref $data eq "HASH" and ref $rest eq "HASH")
225 0 8 if scalar keys %$data != scalar keys %$rest
226 0 8 if join("", sort(keys %$data)) ne join("", sort(keys %$rest))
227 8 0 if ref $meta ne "HASH" or scalar keys %$data != scalar keys %$meta
234 217 13 if (ref $data eq "" and ref $rest eq "")
237 13 0 if ($data == $TRUE and $rest == $TRUE or $data == $FALSE and $rest == $FALSE)
252 12 196 if $want_jolt and $want_jolt ne "v1"
254 118 78 if $method eq "POST"