| lib/Neo4j/Driver/Net/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 29 | 33 | 87.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 76 | 0 | 0 | 70 | $neo4j_version and $tx_endpoint |
| 123 | 4 | 5 | 4 | %{$self->{'active_tx'};} && !defined($tx->{'commit_endpoint'}) |
| 139 | 19 | 66 | 123 | not defined $self->{'want_jolt'} and $self->{'server_info'} |
| 66 | 118 | 5 | not defined $self->{'want_jolt'} and $self->{'server_info'} and $self->{'server_info'}{'version'} =~ m[^Neo4j/4\.[234]\.] | |
| 205 | 228 | 0 | 82 | $info->{'commit'} && $info->{'transaction'} |
| 213 | 25 | 10 | 47 | $header->{'location'} and $header->{'status'} eq 201 |
| line | l | !l | condition |
|---|---|---|---|
| 40 | 3 | 8 | $driver->{'net_module'} || 'Neo4j::Driver::Net::HTTP::LWP' |
| 42 | 86 | 80 | $driver->{'plugins'}{'default_handlers'}{'http_adapter_factory'} //= sub { my $net_module = $driver->{'net_module'} || 'Neo4j::Driver::Net::HTTP::LWP'; return $net_module->new($driver); } |
| 51 | 12 | 150 | $driver->{'concurrent_tx'} // 1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 124 | 4 | 2 | 7 | $is_concurrent ||= keys %{$$self{"active_tx"};} > 1 |
| 174 | 128 | 204 | 4 | $self->{'accept_for'}{$method} // $self->_accept_for($method) |
| 182 | 144 | 192 | 0 | $self->{'result_module_for'}{$header->{'content_type'}} // $self->_result_module_for($header->{'content_type'}) |