blib/lib/Elasticsearch/Role/Cxn/HTTP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 17 | 82.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
34 | 142 | 1 | 1 | $$params{'port'} and not $node =~ m[//[^/]+:\d+] |
line | l | !l | condition |
---|---|---|---|
27 | 147 | 0 | $$params{'node'} || {'host', 'localhost', 'port', '9200'} |
47 | 145 | 2 | $$node{'host'} || 'localhost' |
48 | 3 | 144 | $$node{'userinfo'} || $$params{'userinfo'} || '' |
55 | 9 | 138 | $$node{'path'} || $$params{'path_prefix'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 144 | 0 | 3 | $$node{'scheme'} || ($$params{'use_https'} ? 'https' : 'http') |
51 | 145 | 0 | 2 | $$node{'port'} || $$params{'port'} || ($scheme eq 'http' ? 80 : 443) |