| blib/lib/ElasticSearch/Transport.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 81 | 0.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 97 | 0 | 0 | 0 | not $single_server and $self->should_retry($srvr, $error) |
| 118 | 0 | 0 | 0 | $as_json and not $post_process |
| 0 | 0 | 0 | $as_json and not $post_process and $skip_log | |
| 180 | 0 | 0 | 0 | $error->isa('ElasticSearch::Error::Missing') and $$params{'qs'}{'ignore_missing'} |
| 186 | 0 | 0 | 0 | $error->isa('ElasticSearch::Error::Conflict') and $raw =~ /: version conflict, current \[(\d+)\]/ |
| 192 | 0 | 0 | 0 | ref $content and $$content{'error'} |
| 492 | 0 | 0 | 0 | defined $data and $data ne "{}\n" |
| line | l | !l | condition |
|---|---|---|---|
| 35 | 0 | 0 | delete $$params{'transport'} || 'http' |
| 96 | 0 | 0 | $@ || 'Unknown error' |
| 154 | 0 | 0 | $$error{-'text'} || 'Unknown' |
| 174 | 0 | 0 | shift() || 'Unknown error' |
| 208 | 0 | 0 | $$params{'method'} ||= 'GET' |
| 209 | 0 | 0 | $$params{'cmd'} ||= '/' |
| 210 | 0 | 0 | $$params{'qs'} ||= {} |
| 343 | 0 | 0 | $$self{'_servers'} ||= [] |
| 353 | 0 | 0 | $$self{'_max_requests'} || 0 |
| 363 | 0 | 0 | $$self{'_max_content_length'} || 0 |
| 420 | 0 | 0 | $$self{'_timeout'} || 0 |
| 431 | 0 | 0 | $$self{'_deflate'} || 0 |
| 441 | 0 | 0 | $$self{'_no_refresh'} || 0 |
| 595 | 0 | 0 | $_[1] || 0 |
| 610 | 0 | 0 | shift() || (return) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 60 | 0 | 0 | 0 | delete $$params{'servers'} || '127.0.0.1:' . $transport_class->default_port |
| 90 | 0 | 0 | 0 | $single_server || $self->next_server |
| 121 | 0 | 0 | 0 | $result || $response_json |
| 157 | 0 | 0 | 0 | $self->no_refresh or $error->isa('ElasticSearch::Error::NotReady') |
| 190 | 0 | 0 | 0 | eval { do { $self->JSON->decode($raw) } } || $raw |
| 246 | 0 | 0 | 0 | $$_{$protocol . '_address'} or $$_{$protocol . 'Address'} |
| 333 | 0 | 0 | 0 | $$self{'_current_server'}{$$} || $self->next_server |
| 596 | 0 | 0 | 0 | $Statuses{$code} || 'Unknown code ' . $code |
| 618 | 0 | 0 | 0 | shift() || $class->throw('Param', 'No transport name passed to register_transport()') |
| 621 | 0 | 0 | 0 | shift() || $class->throw('Param', 'No module name passed to register_transport()') |