Branch Coverage

lib/Neo4j/Driver/Transaction.pm
Criterion Covered Total %
branch 56 68 82.3


line true false branch
41 4 287 unless $self->is_open
43 1 286 if $self->{'return_graph'}
46 1 285 if (ref $query eq 'ARRAY') { }
237 48 elsif ($query) { }
67 1 240 if (ref $query)
68 1 0 unless builtin::blessed($query)
70 0 0 if $query->isa("REST::Neo4p::Query")
74 2 238 if (ref $parameters[0] eq 'HASH') { }
26 212 elsif (@parameters) { }
78 3 23 if ref $parameters[0]
79 1 22 if scalar @parameters % 2 != 0
83 23 213 if ($self->{'cypher_params_v2'} and defined $params)
107 5 11 if $self->{'net'}{'active_tx'}
113 1 0 if not $e =~ /\bprotocol version\b/iu
116 0 10 unless $self->{'bolt_txn'}
124 3 8 if $self->{'net'}{'active_tx'}
144 1 6 unless $self->is_open
145 1 5 if $self->{'managed'}
147 5 0 if ($self->{'bolt_txn'}) { }
161 1 9 unless $self->is_open
162 1 8 if $self->{'managed'}
164 5 3 if ($self->{'bolt_txn'}) { }
178 4 27 if $self->{'closed'}
198 0 0 unless $self->is_open
201 0 0 unless ref $_ eq "ARRAY"
202 0 0 unless $_->[0]
216 215 11 if $self->{'return_stats'}
217 24 202 if %$parameters
244 1 25 if $self->{'managed'}
253 13 15 unless $self->is_open
254 1 14 if $self->{'managed'}
256 9 5 if $self->{'transaction_endpoint'}
264 21 292 if $self->{'closed'}
265 256 36 if $self->{'unused'}