Condition Coverage

blib/lib/ElasticSearch/QueryParser.pm
Criterion Covered Total %
condition 52 63 82.5


and 3 conditions

line !l l&&!r l&&r condition
464 4 0 26 defined $next and length $next
486 19 1 1 $next =~ s/^[+-]+// and not $$opts{'fix'}
503 3 0 17 defined $next and length $next
518 2 0 18 $rparen and $$rparen[0] eq '_RPAREN'
541 4 0 35 defined $val and length $val
618 3 11 0 $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field}
640 0 0 18 defined $next and length $next
646 2 16 0 $$opts{'fields'} and !ref($$opts{'fields'}) || $$opts{'fields'}{$field}

or 2 conditions

line l !l condition
519 7 11 $self->_parse_context('_RPAREN') || ''
560 13 4 $fuzzy || 0
593 12 21 $self->_parse_context('_FUZZY') || ''
604 13 12 $self->_parse_context('_PHRASE') || ''
617 4 10 $self->_parse_context('_EXISTS') || ''
661 19 170 $self->_parse_context('_TERM') || ''
671 0 13 $self->_parse_context('_WILDTERM') || ''
689 4 22 $self->_parse_context('_RANGE') || ''
742 839 207 pos $text || 0

or 3 conditions

line l !l&&r !l&&!r condition
241 1 1 0 ref $proto || $proto
299 136 0 8 $$self{'_done'} or $$opts{'fix'}
330 160 723 257 shift @{$$self{'_tokens'};} || $$self{'_tokeniser'}()
434 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'}
618 7 2 2 !ref($$opts{'fields'}) || $$opts{'fields'}{$field}
646 4 4 8 !ref($$opts{'fields'}) || $$opts{'fields'}{$field}