| lib/Neo4j/Driver/Net/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 26 | 31 | 83.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 73 | 0 | 0 | 76 | $neo4j_version and $tx_endpoint |
| 121 | 230 | 22 | 4 | keys %{$$self{'active_tx'};} && !defined($tx->{'commit_endpoint'}) |
| 136 | 18 | 72 | 124 | not defined $self->{'want_jolt'} and $self->{'server_info'} |
| 72 | 119 | 5 | not defined $self->{'want_jolt'} and $self->{'server_info'} and $self->{'server_info'}{'version'} =~ m[^Neo4j/4\.[234]\.]u | |
| 208 | 292 | 2 | 43 | $info->{'commit'} && $info->{'transaction'} |
| 216 | 3 | 6 | 34 | $header->{'location'} and $header->{'status'} eq 201 |
| line | l | !l | condition |
|---|---|---|---|
| 38 | 0 | 7 | $driver->{'config'}{'net_module'} || 'Neo4j::Driver::Net::HTTP::Tiny' |
| 48 | 13 | 157 | $driver->config("concurrent_tx") // 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 40 | 89 | 84 | 0 | $driver->{'events'}{'default_handlers'}{'http_adapter_factory'} //= sub { my $net_module = $driver->{'config'}{'net_module'} || 'Neo4j::Driver::Net::HTTP::Tiny'; return $net_module->new($driver); } |
| 171 | 138 | 210 | 4 | $self->{'accept_for'}{$method} // $self->_accept_for($method) |
| 178 | 148 | 204 | 0 | $self->{'result_module_for'}{$header->{'content_type'}} // $self->_result_module_for($header->{'content_type'}) |