Branch Coverage

lib/Neo4j/Driver/Net/Bolt.pm
Criterion Covered Total %
branch 56 58 96.5


line true false branch
41 1 12 if $driver->config("concurrent_tx")
44 6 6 if (my $auth = $driver->config("auth"))
45 1 5 if $auth->{'scheme'} ne "basic"
51 1 10 if ($net_module eq "Neo4j::Bolt")
54 1 0 unless eval { do { require Neo4j::Bolt; 1 } }
58 1 9 if ($driver->config('encrypted')) { }
67 1 9 unless $cxn->connected
75 1 8 $net_module->can('result_handlers') ? :
94 8 4 unless $ref->server_errcode
5 8 if &try(sub { $ref->server_errmsg unless $ref->server_errcode; } )
100 8 3 unless $ref->client_errnum
4 9 if &try(sub { $ref->client_errmsg unless $ref->client_errnum; } )
106 9 4 unless $ref->errnum
6 7 if &try(sub { $ref->errmsg unless $ref->errnum; } )
114 3 3 unless $cxn->errnum
1 5 if &try(sub { $cxn->errmsg unless $cxn->errnum; } ) and $cxn != $ref
120 3 3 unless $cxn->errnum
3 3 if &try(sub { $cxn->errmsg unless $cxn->errnum; } )
123 12 1 if ref $error_handler eq "CODE"
132 15 0 if $ref->can("errnum")
133 10 5 if $ref->can("client_errnum")
136 7 8 if $errmsg
147 1 8 $cxn->can('protocol_version') ? :
165 1 12 if @statements > 1
173 1 11 $tx->{'bolt_txn'} ? :
176 10 2 if ($statement->[0])
179 2 5 if (not $stream or $stream->failure)
206 6 5 if $driver_tx->{'mode'}
209 1 10 unless $transaction->can("new")