Branch Coverage

lib/Neo4j/Driver/Result/Jolt.pm
Criterion Covered Total %
branch 101 152 66.4


line true false branch
46 6 119 $jolt_v2 ? :
50 7 118 unless $TRUE
52 125 0 if $gather_results
69 114 354 if ($type eq 'header') { }
104 250 elsif ($type eq 'data') { }
114 136 elsif ($type eq 'summary') { }
125 11 elsif ($type eq 'info') { }
11 0 elsif ($type eq 'error') { }
70 0 114 unless $state == 0 or $state == 3
71 0 0 ref $event ? :
0 114 unless ref $event eq "HASH"
76 0 104 unless $state == 1 or $state == 2
77 0 0 ref $event ? :
0 104 unless ref $event eq "ARRAY"
82 0 114 unless $state == 1 or $state == 2
83 0 0 ref $event ? :
0 114 unless ref $event eq "HASH"
95 0 125 unless $state == 0 or $state == 3 or $state == 4
96 0 0 ref $event ? :
0 125 unless ref $event eq "HASH"
105 0 0 unless $state == 0 or $state == 3 or $state == 4
106 0 0 ref $event ? :
0 11 unless ref $event eq "HASH"
108 0 11 unless @{$event->{'errors'};}
116 0 125 unless $state >= 10
118 0 125 unless ($params->{'http_header'}{'success'})
125 11 114 if ref $error
128 114 0 if (@results == 1)
140 0 0 if @results
158 0 0 $jolt_v2 ? :
170 125 468 unless defined $line
173 0 0 ref $json ? :
0 468 unless ref $json eq "HASH"
176 0 468 unless @events == 1
186 0 110 if $self->{'result_list'}
212 108 235 if (ref $data eq "ARRAY")
216 47 188 if (ref $data eq "")
219 2 186 if ($data == $TRUE or $data == $FALSE)
223 0 186 unless ref $data eq "HASH"
224 0 186 if scalar keys %$data != 1
228 3 183 if ($sigil eq "?")
229 1 2 if $value eq "true"
230 1 1 if $value eq "false"
233 15 168 if ($sigil eq "Z")
236 1 167 if ($sigil eq "R")
239 113 54 if ($sigil eq "U")
242 4 50 if ($sigil eq "[]")
243 0 4 unless ref $value eq "ARRAY"
247 6 44 if ($sigil eq "{}")
248 0 6 unless ref $value eq "HASH"
253 21 23 if ($sigil eq "()")
254 0 21 unless ref $value eq "ARRAY"
255 0 21 unless @$value == 3
256 0 21 unless ref $value->[2] eq "HASH"
265 0 21 if $cypher_types->{'init'}
268 12 11 if ($sigil eq "->" or $sigil eq "<-")
269 0 12 unless ref $value eq "ARRAY"
270 0 12 unless @$value == 5
271 0 12 unless ref $value->[4] eq "HASH"
277 8 4 $sigil eq '->' ? :
8 4 $sigil eq '->' ? :
282 0 12 if $cypher_types->{'init'}
285 7 4 if ($sigil eq "..")
286 0 7 unless ref $value eq "ARRAY"
287 0 7 unless @$value & 1
290 0 7 if $cypher_types->{'init'}
293 1 3 if ($sigil eq "\@")
298 1 2 if ($sigil eq "T")
303 1 1 if ($sigil eq "#")
318 82 126 unless $method eq "POST"
320 18 108 if (defined $want_jolt)
321 3 15 unless $want_jolt
322 7 8 if $want_jolt eq "v1"
323 2 6 if $want_jolt eq "strict"
324 2 4 if $want_jolt eq "sparse"
325 2 2 if $want_jolt eq "ndjson"