blib/lib/Search/Elasticsearch/CxnPool/Async/Sniff.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 22 | 90.9 |
line | true | false | branch |
---|---|---|---|
38 | 29 | 50 | if $self->next_sniff <= time and not $no_sniff |
46 | 45 | 4 | if $cxn->is_live |
52 | 45 | 5 | if ($cxn) { } |
72 | 0 | 29 | if ($promise = $self->_current_sniff) |
88 | 10 | 17 | if ($cxn->is_dead) { } |
97 | 13 | 16 | unless (@all) |
105 | 16 | 38 | if $done |
107 | 24 | 14 | if ($nodes and $self->parse_sniff($nodes)) |
113 | 2 | 12 | unless (@all or $done_seeds++) |
118 | 9 | 5 | if (my $cxn = shift @all) |
121 | 5 | 0 | if (--$current == 0) |