| blib/lib/Elasticsearch/Role/Cxn/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 16 | 81.2 |
| line | true | false | branch |
|---|---|---|---|
| 30 | 144 | 3 | unless (ref $node eq 'HASH') |
| 31 | 119 | 25 | unless ($node =~ m[^http(s)?://]) |
| 32 | 1 | 118 | $$params{'use_https'} ? : |
| 34 | 1 | 143 | if ($$params{'port'} and not $node =~ m[//[^/]+:\d+]) |
| 59 | 147 | 0 | unless $$params{'default_headers'} |
| 61 | 3 | 144 | if ($userinfo) |
| 68 | 1 | 146 | if ($$params{'deflate'}) |
| 135 | 0 | 0 | unless IO::Uncompress::Inflate::inflate(\$content, \$output, 'Transparent', 0) |