Branch Coverage

lib/Neo4j/Driver/Net/HTTP.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
73 76 0 if $neo4j_version and $tx_endpoint
76 0 0 if ($service->{'data'})
81 0 76 unless $neo4j_version
85 0 76 $date ? :
104 163 0 if $tx_endpoint
108 3 160 unless defined $database
119 256 13 unless ($self->{'want_concurrent'})
122 4 252 if $is_concurrent
136 5 191 if not defined $self->{'want_jolt'} and $self->{'server_info'} and $self->{'server_info'}{'version'} =~ m[^Neo4j/4\.[234]\.]u
140 66 148 if $self->{'http_agent'}->can("result_handlers")
152 47 157 if $self->{'http_agent'}->can("result_handlers")
154 193 135 if ($module->_acceptable($content_type))
167 36 316 unless (defined $tx->{'transaction_endpoint'})
186 265 87 $json ? :
191 27 323 if $info->{'_error'}
202 27 323 if (my $error = $info->{'_error'})
203 13 14 if $error->source ne "Server"
204 0 14 if $error->source eq "Network"
210 294 43 if ($tx->{'closed'})
216 34 9 if ($header->{'location'} and $header->{'status'} eq 201)
222 43 0 if (my $expires = $info->{'transaction'}{'expires'})
237 0 39 if $now > $expires