blib/lib/Search/Elasticsearch/Role/CxnPool/Sniff.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 18 | 88.8 |
line | true | false | branch |
---|---|---|---|
38 | 12 | 0 | unless defined $params->{'sniff_max_content_length'} |
54 | 13 | 25 | unless my $nodes = shift() |
63 | 1 | 46 | unless my $host = $self->_extract_host($addr) |
66 | 0 | 46 | unless $host = $self->should_accept_node($host, $node_id, $data) |
70 | 3 | 43 | unless $sniff_max and $data->{'http'} |
73 | 1 | 1 | $max == 0 ? : |
41 | 2 | $node_max == 0 ? : | |
79 | 1 | 24 | unless @live_nodes |
81 | 1 | 23 | if $sniff_max and $max |