Branch Coverage

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


line true false branch
76 70 0 if $neo4j_version and $tx_endpoint
79 0 0 if ($service->{'data'})
84 0 70 unless $neo4j_version
88 0 70 $date ? :
107 155 0 if $tx_endpoint
111 3 152 unless defined $database
122 36 218 if (%{$self->{'active_tx'};} and not $self->{'want_concurrent'})
124 8 28 if $is_concurrent
138 5 185 if not defined $self->{'want_jolt'} and $self->{'server_info'} and $self->{'server_info'}{'version'} =~ m[^Neo4j/4\.[234]\.]
142 90 119 if $self->{'http_agent'}->can("result_handlers")
154 65 128 if $self->{'http_agent'}->can("result_handlers")
156 182 140 if ($module->_acceptable($content_type))
169 47 291 unless (defined $tx->{'transaction_endpoint'})
189 254 84 $json ? :
194 28 308 if $info->{'_error'}
205 28 308 if (my $error = $info->{'_error'})
206 13 15 if $error->source ne "Server"
207 0 15 if $error->source eq "Network"
213 261 62 if ($tx->{'closed'})
219 49 13 if ($header->{'location'} and $header->{'status'} eq 201)
225 62 0 if (my $expires = $info->{'transaction'}{'expires'})
240 0 54 if $now > $expires