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
105 166 1 3 $params->{'port'} and not $node =~ m(//[^/\[]+:\d+)
338 4 1 233 $mime_type && $mime_type ne 'text/plain'
350 0 62 176 $code >= 200 and $code <= 209
351 34 1 141 defined $body and length $body
368 49 0 0 defined $body and length $body
384 2 0 0 $error_type eq "Conflict" and $msg =~ /: version conflict, current (?:version )?\[(\d+)\]/

or 2 conditions

line l !l condition
98 175 0 $params->{'node'} || {'host', 'localhost', 'port', '9200'}
118 173 2 $node->{'host'} || 'localhost'
119 1 172 $node->{'userinfo'} || $params->{'userinfo'} || ''
126 1 165 $node->{'path'} || $params->{'path_prefix'} || ''
336 234 4 $headers->{'content-type'} || ''
417 2 0 $body->{'error'} || (return)
420 0 0 $error->{'root_cause'} || []

or 3 conditions

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