Branch Coverage

lib/Neo4j/Driver/Transaction.pm
Criterion Covered Total %
branch 69 82 84.1


line true false branch
45 4 270 unless $self->is_open
47 2 268 if $self->{'return_graph'}
50 3 267 if (ref $query eq 'ARRAY') { }
220 47 elsif ($query) { }
65 233 2 if (scalar @statements <= 1)
67 1 232 if wantarray
68 1 232 wantarray ? :
70 1 1 wantarray ? :
77 1 233 if (ref $query)
78 1 0 unless &blessed($query)
80 0 0 if $query->isa("REST::Neo4p::Query")
84 3 230 if (ref $parameters[0] eq 'HASH') { }
30 200 elsif (@parameters) { }
88 3 27 if ref $parameters[0]
89 1 26 if scalar @parameters % 2 != 0
93 28 201 if ($self->{'cypher_params_v2'} and defined $params)
117 5 11 if $self->{'net'}{'active_tx'}
123 0 0 if not $_ =~ /\bprotocol version\b/i
126 1 10 unless $self->{'bolt_txn'}
134 3 8 if $self->{'net'}{'active_tx'}
147 5 1 unless wantarray
149 1 0 if ref $query ne "ARRAY"
157 1 6 unless $self->is_open
158 1 5 if $self->{'managed'}
160 5 0 if ($self->{'bolt_txn'}) { }
174 1 9 unless $self->is_open
175 1 8 if $self->{'managed'}
177 5 3 if ($self->{'bolt_txn'}) { }
191 4 28 if $self->{'closed'}
212 0 0 unless $self->is_open
215 0 0 unless ref $_ eq "ARRAY"
216 0 0 unless $_->[0]
230 2 215 if $self->{'return_graph'}
231 201 16 if $self->{'return_stats'}
232 29 188 if %$parameters
259 1 24 if $self->{'managed'}
268 13 16 unless $self->is_open
269 1 15 if $self->{'managed'}
271 12 3 if $self->{'transaction_endpoint'}
279 20 274 if $self->{'closed'}
280 227 47 if $self->{'unused'}