Branch Coverage

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


line true false branch
57 0 0 $options->{'anyevent'} ? :
71 0 0 $options->{'tls'} ? :
84 0 0 if $self->{'connected'}
85 0 0 if $self->{'shutdown'}
88 0 0 if ($self->{'connecting'}++)
98 0 0 unless ($contact_point)
124 0 0 if ($error)
143 0 0 if $self->{'shutdown'}
154 0 0 unless $self->{'connected'}
166 0 0 if ($change eq 'NEW_NODE') { }
0 0 elsif ($change eq 'REMOVED_NODE') { }
188 0 0 if ($self->{'metadata'}->is_prepared(\$query))
232 0 0 if $self->{'throttler'}->should_fail
234 0 0 if $self->{'active_queries'} >= $self->{'options'}{'max_concurrent_queries'}
236 0 0 unless $self->{'connected'}
239 0 0 unless $connection
247 0 0 if $self->{'command_queue'}{'has_any'}
249 0 0 if $error
282 0 0 if ($self->{'throttler'}->should_fail)
292 0 0 if $self->{'command_queue'}{'has_any'}
294 0 0 if $error
307 0 0 if ($self->{'active_queries'} >= $self->{'options'}{'max_concurrent_queries'}) { }
318 0 0 unless XXX
321 0 0 if ($error->do_retry) { }
0 0 elsif ($error->is_request_error) { }
0 0 elsif ($error->isa('Cassandra::Client::Error::WriteTimeoutException')) { }
0 0 elsif ($error->isa('Cassandra::Client::Error::ReadTimeoutException')) { }
0 0 elsif ($error->isa('Cassandra::Client::Error::UnavailableException')) { }
335 0 0 if ($retry_decision and $retry_decision eq 'retry')
344 0 0 if (my $error = $self->{'command_queue'}->enqueue([$command, $callback, $args, $command_info]))
352 0 0 unless my $item = $self->{'command_queue'}->dequeue
361 0 0 $params ? :
362 0 0 $attribs ? :
373 0 0 if $error
378 0 0 if ($next_page_id) { }
397 0 0 if &in_global_destruction()
400 0 0 if ($self->{'connected'})
413 0 0 unless ($c, $file, $line) = caller 2
415 0 0 unless ($c, $file, $line) = caller 3
426 0 0 unless (eval { do { &$cb; 1 } })
440 0 0 if ($err)
463 0 0 if ($error) { }
482 0 0 if ($error)