Branch Coverage

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


line true false branch
34 0 10 unless defined $HANDLES[$i]
50 0 0 unless defined $HANDLES[$i]
58 0 1 unless $tx =~ /^[0-9]+$/
94 0 0 if ($class->_check_version(2, 0, 0, 2))
113 3 1 unless (defined $HANDLES[$HANDLE]{'_agent'})
117 0 3 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 3 elsif ($e = 'Exception::Class'->caught) { }
122 0 0 ref $e && $e->can('rethrow') ? :
134 0 32 if $uri->userinfo
137 0 32 unless $server_address
142 30 2 if (my $e = 'Exception::Class'->caught)
145 1 1 if ($major >= 4)
146 1 0 unless ($AGENT_MODULE eq 'Neo4j::Driver')
147 0 1 unless (eval 'require Neo4j::Driver; 1')
154 0 2 if defined $user
164 2 31 if ($resp->{'success'}) { }
167 1 1 unless (defined $version)
170 1 0 if ($resp->{'success'}) { }
178 0 2 unless defined $version
185 2 0 wantarray ? :
198 0 0 unless $neo4p->connected
202 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
206 0 0 ref $e && $e->can('rethrow') ? :
214 0 0 unless $neo4p->connected
216 0 0 if ($value)
223 0 0 $prop ? :
227 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
231 0 0 ref $e && $e->can('rethrow') ? :
243 0 0 unless $neo4p->connected
251 0 0 unless $neo4p->connected
255 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
259 0 0 ref $e && $e->can('rethrow') ? :
267 0 0 if (grep /^$name$/, ('node', 'relationship'))
273 0 0 unless $neo4p->connected
277 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
281 0 0 ref $e && $e->can('rethrow') ? :
288 0 0 unless $neo4p->connected
294 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
299 0 0 ref $@ ? :
301 0 0 ref $decoded_json ? :
307 1 1 unless ($type)
310 1 0 unless $neo4p->connected
316 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
321 0 0 ref $@ ? :
336 0 1 unless ($neo4p->_check_version(2, 0, 0, 2))
339 0 1 if ($neo4p->_transaction)
349 0 1 if @{$resp->{'errors'};}
351 0 1 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 1 elsif ($e = 'Exception::Class'->caught) { }
356 0 0 ref $e && $e->can('rethrow') ? :
364 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
367 0 0 if $neo4p->q_endpoint eq 'cypher'
368 0 0 unless ($neo4p->q_endpoint eq 'transaction')
378 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
383 0 0 ref $e && $e->can('rethrow') ? :
393 0 0 unless ($neo4p->_check_version(2, 0, 0, 2))
396 0 0 if ($neo4p->q_endpoint eq 'cypher')
399 0 0 unless ($neo4p->q_endpoint eq 'transaction')
405 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
410 0 0 ref $e && $e->can('rethrow') ? :
419 1 0 unless defined $v
422 0 0 wantarray ? :
439 0 2 if (defined $milestone and defined $s)