| blib/lib/Elasticsearch/Compat/QueryParser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 52 | 63 | 82.5 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 239 | 4 | 0 | 26 | defined $next and length $next | 
| 261 | 19 | 1 | 1 | $next =~ s/^[+-]+// and not $$opts{'fix'} | 
| 278 | 3 | 0 | 17 | defined $next and length $next | 
| 293 | 2 | 0 | 18 | $rparen and $$rparen[0] eq '_RPAREN' | 
| 316 | 4 | 0 | 35 | defined $val and length $val | 
| 393 | 3 | 11 | 0 | $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field} | 
| 415 | 0 | 0 | 18 | defined $next and length $next | 
| 421 | 2 | 16 | 0 | $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field} | 
| line | l | !l | condition | 
|---|---|---|---|
| 294 | 7 | 11 | $self->_parse_context('_RPAREN') || '' | 
| 335 | 13 | 4 | $fuzzy || 0 | 
| 368 | 12 | 21 | $self->_parse_context('_FUZZY') || '' | 
| 379 | 13 | 12 | $self->_parse_context('_PHRASE') || '' | 
| 392 | 4 | 10 | $self->_parse_context('_EXISTS') || '' | 
| 436 | 19 | 170 | $self->_parse_context('_TERM') || '' | 
| 446 | 0 | 13 | $self->_parse_context('_WILDTERM') || '' | 
| 464 | 4 | 22 | $self->_parse_context('_RANGE') || '' | 
| 517 | 839 | 207 | pos $text || 0 | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 16 | 1 | 1 | 0 | ref $proto || $proto | 
| 74 | 136 | 0 | 8 | $$self{'_done'} or $$opts{'fix'} | 
| 105 | 160 | 723 | 257 | shift @{$$self{'_tokens'};} || $$self{'_tokeniser'}() | 
| 209 | 21 | 47 | 105 | @{$$self{'_stack'};} > 1 or not $$self{'_opts'}{'fix'} | 
| 68 | 96 | 9 | @{$$self{'_stack'};} > 1 or not $$self{'_opts'}{'fix'} or $$self{'_done'} | |
| 393 | 7 | 2 | 2 | !ref($$opts{'fields'}) || $$opts{'fields'}{$field} | 
| 421 | 4 | 4 | 8 | !ref($$opts{'fields'}) || $$opts{'fields'}{$field} |