Branch Coverage

blib/lib/Cassandra/Client/Pool.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
61 0 0 if ($self->{'config'}{'warmup'}) { }
73 0 0 unless $self->{'count'}
82 0 0 if $self->{'count'}
84 0 0 unless (%{$self->{'connecting'};})
87 0 0 unless (%{$self->{'connecting'};})
99 0 0 unless ($id)
105 0 0 unless ($ipaddress)
111 0 0 unless ($connection)
130 0 0 if ($self->{'pool'}{$ipaddress})
177 0 0 if $max_connect <= 0
180 0 0 if $max_connect <= 0
182 0 0 if $self->{'shutdown'}
184 0 0 if ($self->{'_in_connect'})
195 0 0 if ($done == $expect)
196 0 0 if $callback
198 0 0 unless $self->spawn_new_connection(sub { ++$done; if ($done == $expect) { &$callback() if $callback; } ; } )
200 0 0 if ($callback and not $expect)
209 0 0 unless $host
226 0 0 if ($error) { }
229 0 0 if (my $waiters = delete $self->{'wait_connect'})
230 0 0 if ($self->{'count'} and @$waiters)
236 0 0 $max_conn < $known_node_count ? :
239 0 0 if (++$waiter->{'attempts'} >= $max_attempts or not %{$self->{'connecting'};}) { }
268 0 0 if (my $conn = $self->{'pool'}{$ipaddress})