Branch Coverage

lib/Neo4j/Driver.pm
Criterion Covered Total %
branch 70 70 100.0


line true false branch
64 1 166 if @extra
65 158 8 if ref $config ne "HASH"
76 109 77 if ($uri) { }
77 3 106 if $uri =~ /^[0-9a-f:]*::|^(?:[0-9a-f]+:){6}/i
78 7 102 if not $uri =~ m[:|/] or $uri =~ /^\[.+\]$/
79 2 107 if $uri =~ m[^//]
82 5 104 unless ($uri->scheme)
85 6 98 unless ($uri->scheme =~ /^https?$|^bolt$/)
89 10 88 if (my $userinfo = $uri->userinfo(undef))
95 54 44 unless $uri->host
96 6 92 if $uri->path_query eq "/"
102 159 16 unless $uri->_port
111 2 39 if $self->{'server_info'}
126 169 1309 if @options == 1 and ref $options[0] eq "HASH"
127 2 1476 unless @options
129 1214 262 if (@options < 2)
132 1 1213 unless grep /^$key$/, keys %OPTIONS
136 1 261 if $self->{'server_info'}
143 186 92 if $OPTIONS{$key} eq "uri"
152 89 88 unless ($self->{'server_info'})
157 3 174 unless $self->{'die_on_error'}
158 1 176 if defined $self->{'http_timeout'}
161 2 175 if @options == 1 and ref $options[0] eq "HASH"
172 2 436 if @options & 1
175 1 435 if $options{'ca_file'}
176 1 435 if $options{'cypher_types'}
177 26 410 if ($options{'cypher_params'}) { }
2 408 elsif ($options{'cypher_filter'}) { }
178 1 25 if $options{'cypher_params'} ne v2
182 1 1 if $options{'cypher_filter'} ne "params"
185 3 431 if defined $options{'jolt'}
186 2 432 if defined $options{'net_module'}
190 4 369 unless grep /^$key$/, @$supported
192 3 431 if @unsupported
202 1 75 if @extra