Branch Coverage

blib/lib/REST/Neo4p.pm
Criterion Covered Total %
branch 26 138 18.8


line true false branch
35 0 10 unless defined $HANDLES[$i]
51 0 0 unless defined $HANDLES[$i]
59 0 1 unless $tx =~ /^[0-9]+$/
95 0 0 if ($class->_check_version(2, 0, 0, 2))
114 3 1 unless (defined $HANDLES[$HANDLE]{'_agent'})
118 0 3 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 3 elsif ($e = 'Exception::Class'->caught) { }
123 0 0 ref $e && $e->can('rethrow') ? :
135 0 32 if $uri->userinfo
138 0 32 unless $server_address
143 30 2 if (my $e = "Exception::Class"->caught)
146 1 1 if ($major >= 4) { }
0 1 elsif ($uri->scheme eq 'bolt') { }
147 1 0 unless ($AGENT_MODULE eq "Neo4j::Driver")
153 0 0 unless ($AGENT_MODULE eq "Neo4j::Driver")
158 0 2 if defined $user
166 0 31 if $user or $pass
170 0 0 wantarray ? :
183 0 0 unless $neo4p->connected
187 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
191 0 0 ref $e && $e->can('rethrow') ? :
199 0 0 unless $neo4p->connected
201 0 0 if ($value)
208 0 0 $prop ? :
212 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
216 0 0 ref $e && $e->can('rethrow') ? :
228 0 0 unless $neo4p->connected
236 0 0 unless $neo4p->connected
240 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
244 0 0 ref $e && $e->can('rethrow') ? :
252 0 0 if (grep /^$name$/, ("node", "relationship"))
258 0 0 unless $neo4p->connected
262 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
266 0 0 ref $e && $e->can('rethrow') ? :
273 0 0 unless $neo4p->connected
279 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
284 0 0 ref $@ ? :
286 0 0 ref $decoded_json ? :
292 1 1 unless ($type)
295 1 0 unless $neo4p->connected
301 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
306 0 0 ref $@ ? :
321 0 1 unless ($neo4p->_check_version(2, 0, 0, 2))
324 0 1 if ($neo4p->_transaction)
334 0 1 if @{$resp->{'errors'};}
336 0 1 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 1 elsif ($e = 'Exception::Class'->caught) { }
341 0 0 ref $e && $e->can('rethrow') ? :
349 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
352 0 0 if $neo4p->q_endpoint eq "cypher"
353 0 0 unless ($neo4p->q_endpoint eq "transaction")
363 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
368 0 0 ref $e && $e->can('rethrow') ? :
378 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
381 0 0 if ($neo4p->q_endpoint eq "cypher")
384 0 0 unless ($neo4p->q_endpoint eq "transaction")
390 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
395 0 0 ref $e && $e->can('rethrow') ? :
404 1 0 unless defined $v
407 0 0 wantarray ? :
424 0 2 if (defined $milestone and defined $s)