Branch Coverage

lib/Neo4j/Driver/Net/HTTP.pm
Criterion Covered Total %
branch 28 36 77.7


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 154 0 if $tx_endpoint
111 3 151 unless defined $database
122 13 239 unless ($self->{'want_concurrent'})
125 6 7 if $is_concurrent
139 5 184 if not defined $self->{'want_jolt'} and $self->{'server_info'} and $self->{'server_info'}{'version'} =~ m[^Neo4j/4\.[234]\.]
143 89 119 if $self->{'http_agent'}->can("result_handlers")
155 64 128 if $self->{'http_agent'}->can("result_handlers")
157 181 139 if ($module->_acceptable($content_type))
170 46 290 unless (defined $tx->{'transaction_endpoint'})
192 252 84 $json ? :
207 228 82 if ($tx->{'closed'})
213 47 35 if ($header->{'location'} and $header->{'status'} eq 201)
219 82 0 if (my $expires = $info->{'transaction'}{'expires'})
234 0 55 if $now > $expires