Branch Coverage

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


line true false branch
56 0 0 $options->{'anyevent'} ? :
70 0 0 $options->{'tls'} ? :
83 0 0 if $self->{'connected'}
84 0 0 if $self->{'shutdown'}
87 0 0 if (not $self->{'connecting'} and my $error = $self->{'throttler'}->should_fail)
92 0 0 if ($self->{'connecting'}++)
102 0 0 unless ($contact_point)
129 0 0 if ($error)
148 0 0 if $self->{'shutdown'}
159 0 0 unless $self->{'connected'}
171 0 0 if ($change eq 'NEW_NODE') { }
0 0 elsif ($change eq 'REMOVED_NODE') { }
193 0 0 if ($self->{'metadata'}->is_prepared(\$query))
238 0 0 if $self->{'active_queries'} >= $self->{'options'}{'max_concurrent_queries'}
240 0 0 unless $self->{'connected'}
243 0 0 unless $connection
245 0 0 if (my $error = $self->{'throttler'}->should_fail)
255 0 0 if $self->{'command_queue'}{'has_any'}
257 0 0 if $error
286 0 0 if (my $error = $self->{'throttler'}->should_fail)
296 0 0 if $self->{'command_queue'}{'has_any'}
298 0 0 if $error
313 0 0 if ($self->{'active_queries'} >= $self->{'options'}{'max_concurrent_queries'}) { }
324 0 0 if (is_ref($error))
326 0 0 $command eq 'execute_prepared' ? :
328 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')) { }
342 0 0 if ($retry_decision and $retry_decision eq "retry")
353 0 0 if (my $error = $self->{'command_queue'}->enqueue([$command, $callback, $args, $command_info]))
361 0 0 unless ($self->{'command_callback_scheduled'}++)
366 0 0 unless my $item = $self->{'command_queue'}->dequeue
378 0 0 if (my $stats_hook = $self->{'options'}{'stats_hook'})
391 0 0 $params ? :
392 0 0 $attribs ? :
403 0 0 if $error
408 0 0 if ($next_page_id) { }
427 0 0 if &in_global_destruction()
430 0 0 if ($self->{'connected'})
443 0 0 unless ($c, $file, $line) = caller 2
445 0 0 unless ($c, $file, $line) = caller 3
456 0 0 unless (eval { do { &$cb; 1 } })
470 0 0 if ($err)
493 0 0 if ($error) { }
512 0 0 if ($error)