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
199 0 0 unless $self->spawn_new_connection(sub { ++$done; if ($done == $expect) { &$callback() if $callback; undef $callback; } ; } )
201 0 0 if ($callback and not $expect)
210 0 0 unless $host
227 0 0 if ($error) { }
230 0 0 if (my $waiters = delete $self->{'wait_connect'})
231 0 0 if ($self->{'count'} and @$waiters)
237 0 0 $max_conn < $known_node_count ? :
240 0 0 if (++$waiter->{'attempts'} >= $max_attempts or not %{$self->{'connecting'};}) { }
271 0 0 if (my $conn = $self->{'pool'}{$ipaddress})