Condition Coverage

blib/lib/OpenSearch/Client/Role/Cxn.pm
Criterion Covered Total %
condition 28 44 63.6


and 3 conditions

line !l l&&!r l&&r condition
102 166 1 3 $params->{'port'} and not $node =~ m(//[^/\[]+:\d+)
335 4 1 233 $mime_type && $mime_type ne 'text/plain'
347 0 62 176 $code >= 200 and $code <= 209
348 34 1 141 defined $body and length $body
365 49 0 0 defined $body and length $body
381 2 0 0 $error_type eq "Conflict" and $msg =~ /: version conflict, current (?:version )?\[(\d+)\]/

or 2 conditions

line l !l condition
95 175 0 $params->{'node'} || {'host', 'localhost', 'port', '9200'}
115 173 2 $node->{'host'} || 'localhost'
116 1 172 $node->{'userinfo'} || $params->{'userinfo'} || ''
123 1 165 $node->{'path'} || $params->{'path_prefix'} || ''
333 234 4 $headers->{'content-type'} || ''
414 2 0 $body->{'error'} || (return)
417 0 0 $error->{'root_cause'} || []

or 3 conditions

line l !l&&r !l&&!r condition
118 170 5 0 $node->{'scheme'} || ($params->{'use_https'} ? 'https' : 'http')
122 0 4 0 $node->{'port'} || $params->{'port'} || ($scheme eq 'http' ? 80 : 443)
379 2 0 0 $self->_munge_opensearch_exception($body) || $msg
385 60 0 0 $msg ||= $error_type