Branch Coverage

blib/lib/REST/Neo4p.pm
Criterion Covered Total %
branch 32 142 22.5


line true false branch
36 0 10 unless defined $HANDLES[$i]
52 0 0 unless defined $HANDLES[$i]
60 0 1 unless $tx =~ /^[0-9]+$/
96 0 0 if ($class->_check_version(2, 0, 0, 2))
115 3 1 unless (defined $HANDLES[$HANDLE]{'_agent'})
119 0 3 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 3 elsif ($e = 'Exception::Class'->caught) { }
124 0 0 ref $e && $e->can('rethrow') ? :
136 0 32 if $uri->userinfo
139 0 32 unless $server_address
144 30 2 if (my $e = 'Exception::Class'->caught)
147 1 1 if ($major >= 4)
148 1 0 unless ($AGENT_MODULE eq 'Neo4j::Driver')
149 0 1 unless (eval 'require Neo4j::Driver; 1')
156 0 2 if defined $user
166 2 31 if ($resp->{'success'}) { }
169 1 1 unless (defined $version)
172 1 0 if ($resp->{'success'}) { }
180 0 2 unless defined $version
187 2 0 wantarray ? :
200 0 0 unless $neo4p->connected
204 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
208 0 0 ref $e && $e->can('rethrow') ? :
216 0 0 unless $neo4p->connected
218 0 0 if ($value)
225 0 0 $prop ? :
229 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
233 0 0 ref $e && $e->can('rethrow') ? :
245 0 0 unless $neo4p->connected
253 0 0 unless $neo4p->connected
257 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
261 0 0 ref $e && $e->can('rethrow') ? :
269 0 0 if (grep /^$name$/, ('node', 'relationship'))
275 0 0 unless $neo4p->connected
279 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
283 0 0 ref $e && $e->can('rethrow') ? :
290 0 0 unless $neo4p->connected
296 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
301 0 0 ref $@ ? :
303 0 0 ref $decoded_json ? :
309 1 1 unless ($type)
312 1 0 unless $neo4p->connected
318 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
323 0 0 ref $@ ? :
338 0 1 unless ($neo4p->_check_version(2, 0, 0, 2))
341 0 1 if ($neo4p->_transaction)
351 0 1 if @{$resp->{'errors'};}
353 0 1 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 1 elsif ($e = 'Exception::Class'->caught) { }
358 0 0 ref $e && $e->can('rethrow') ? :
366 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
369 0 0 if $neo4p->q_endpoint eq 'cypher'
370 0 0 unless ($neo4p->q_endpoint eq 'transaction')
380 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
385 0 0 ref $e && $e->can('rethrow') ? :
395 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
398 0 0 if ($neo4p->q_endpoint eq 'cypher')
401 0 0 unless ($neo4p->q_endpoint eq 'transaction')
407 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
412 0 0 ref $e && $e->can('rethrow') ? :
421 1 0 unless defined $v
424 0 0 wantarray ? :
441 0 2 if (defined $milestone and defined $s)