blib/lib/Search/Elasticsearch/Role/Cxn.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 50 | 58.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
104 | 166 | 1 | 3 | $params->{'port'} and not $node =~ m(//[^/\[]+:\d+) |
152 | 175 | 0 | 0 | defined $ENV{'ELASTIC_CLIENT_APIVERSIONING'} and lc $ENV{'ELASTIC_CLIENT_APIVERSIONING'} eq 'true' || $ENV{'ELASTIC_CLIENT_APIVERSIONING'} eq '1' |
347 | 4 | 1 | 233 | $mime_type && $mime_type ne 'text/plain' |
359 | 0 | 62 | 176 | $code >= 200 and $code <= 209 |
360 | 34 | 1 | 141 | defined $body and length $body |
377 | 49 | 0 | 0 | defined $body and length $body |
393 | 2 | 0 | 0 | $error_type eq "Conflict" and $msg =~ /: version conflict, current (?:version )?\[(\d+)\]/ |
line | l | !l | condition |
---|---|---|---|
97 | 175 | 0 | $params->{'node'} || {'host', 'localhost', 'port', '9200'} |
117 | 173 | 2 | $node->{'host'} || 'localhost' |
118 | 1 | 172 | $node->{'userinfo'} || $params->{'userinfo'} || '' |
125 | 1 | 165 | $node->{'path'} || $params->{'path_prefix'} || '' |
345 | 234 | 4 | $headers->{'content-type'} || '' |
426 | 2 | 0 | $body->{'error'} || (return) |
429 | 0 | 0 | $error->{'root_cause'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
120 | 170 | 5 | 0 | $node->{'scheme'} || ($params->{'use_https'} ? 'https' : 'http') |
124 | 0 | 4 | 0 | $node->{'port'} || $params->{'port'} || ($scheme eq 'http' ? 80 : 443) |
152 | 0 | 0 | 0 | lc $ENV{'ELASTIC_CLIENT_APIVERSIONING'} eq 'true' || $ENV{'ELASTIC_CLIENT_APIVERSIONING'} eq '1' |
391 | 2 | 0 | 0 | $self->_munge_elasticsearch_exception($body) || $msg |
397 | 60 | 0 | 0 | $msg ||= $error_type |