Condition Coverage

blib/lib/Search/Elasticsearch/Compat/QueryParser.pm
Criterion Covered Total %
condition 52 63 82.5


and 3 conditions

line !l l&&!r l&&r condition
240 4 0 26 defined $next and length $next
262 19 1 1 $next =~ s/^[+-]+// and not $$opts{'fix'}
279 3 0 17 defined $next and length $next
294 2 0 18 $rparen and $$rparen[0] eq '_RPAREN'
317 4 0 35 defined $val and length $val
394 3 11 0 $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field}
416 0 0 18 defined $next and length $next
422 2 16 0 $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field}

or 2 conditions

line l !l condition
295 7 11 $self->_parse_context('_RPAREN') || ''
336 13 4 $fuzzy || 0
369 12 21 $self->_parse_context('_FUZZY') || ''
380 13 12 $self->_parse_context('_PHRASE') || ''
393 4 10 $self->_parse_context('_EXISTS') || ''
437 19 170 $self->_parse_context('_TERM') || ''
447 0 13 $self->_parse_context('_WILDTERM') || ''
465 4 22 $self->_parse_context('_RANGE') || ''
518 839 207 pos $text || 0

or 3 conditions

line l !l&&r !l&&!r condition
17 1 1 0 ref $proto || $proto
75 136 0 8 $$self{'_done'} or $$opts{'fix'}
106 160 723 257 shift @{$$self{'_tokens'};} || $$self{'_tokeniser'}()
210 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'}
394 7 2 2 !ref($$opts{'fields'}) || $$opts{'fields'}{$field}
422 4 4 8 !ref($$opts{'fields'}) || $$opts{'fields'}{$field}