| blib/lib/Net/Async/CassandraCQL.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 38 | 47.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 431 | 0 | 5 | 4 | @nodeids and $have_primaries < $$self{'primaries'} |
| 461 | 6 | 2 | 0 | defined $$node{'down_time'} and $now - $$node{'down_time'} > 60 |
| 633 | 2 | 1 | 0 | $$nodes{$_}{'data_center'} ne $dc and $old_nodeid = $_, last |
| line | l | !l | condition |
|---|---|---|---|
| 174 | 2 | 5 | $$params{'primaries'} //= 1 |
| 200 | 0 | 5 | $params{'hosts'} ||= [delete $params{'host'}] |
| 317 | 0 | 0 | $$self{'service'} // 9042 |
| 718 | 14 | 5 | $$self{'next_primary'} // 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 317 | 0 | 0 | 0 | $service //= $$self{'service'} // 9042 |
| 465 | 2 | 2 | 0 | $new_primary ||= $nodeid |
| 822 | 15 | 0 | 0 | $consistency //= $$self{'default_consistency'} |
| 918 | 1 | 0 | 0 | $$q{'ttl'} <= 0 or refcount($self) == 2 |
| 1 | 0 | 0 | $$q{'ttl'} <= 0 or refcount($self) == 2 or not $self->loop | |
| 949 | 0 | 3 | 0 | $$q{'pacemaker'} //= $self->loop->delay_future('after', 0.5)->on_done(sub { $self->_check_query_pacemaker($cql); } ) |
| 972 | 4 | 0 | 0 | $consistency //= $$self{'default_consistency'} |