blib/lib/Elasticsearch/Role/CxnPool/Sniff.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 20 | 85.0 |
line | true | false | branch |
---|---|---|---|
20 | 12 | 0 | unless defined $$params{'sniff_max_content_length'} |
38 | 13 | 26 | unless my $nodes = shift() |
47 | 1 | 47 | unless my $host = $$data{$protocol . '_address'} |
48 | 1 | 46 | unless $host =~ s(^inet\[[^/]*/([^\]]+)\])[$1] |
50 | 0 | 46 | unless $host = $self->should_accept_node($host, $node_id, $data) |
54 | 44 | 2 | unless $sniff_max and $$data{$protocol} |
57 | 1 | 1 | $max == 0 ? : |
0 | 2 | $node_max == 0 ? : | |
63 | 2 | 24 | unless @live_nodes |
65 | 1 | 23 | if $sniff_max and $max |