Condition Coverage

blib/lib/Search/Query/Dialect/Lucy.pm
Criterion Covered Total %
condition 69 92 75.0


and 3 conditions

line !l l&&!r l&&r condition
123 59 145 3 $self->{'default_field'} and not ref $self->{'default_field'}
177 8 162 8 defined $value and $self->fuzzify
201 0 16 17 $clause->has_children and $clause->has_children == 1
276 4 89 23 defined $value and $value =~ /[\*\?]|\Q$wildcard\E/
324 11 22 1 $prefix eq '-' and $clause->{'op'} eq '!:'
419 49 12 1 $prefix eq '-' and @clauses > 1
427 12 2 0 not $has_explicit_fields and $prefix eq '-'
428 36 2 10 $prefix eq '-' and $has_explicit_fields
38 9 1 $prefix eq '-' and $has_explicit_fields and not $clauses[0]->isa($lucy_class)
511 4 49 13 defined $value and $value =~ /[\*\?]|\Q$wildcard\E/
630 5 0 92 &blessed(scalar $field->analyzer) and not ref $value
769 0 81 0 defined $term and length $term
775 59 20 0 $op eq '!:' and $term =~ /[$wildcard\*\?]/
20 33 0 $op eq ':' and $term =~ /[$wildcard\*\?]/

or 2 conditions

line l !l condition
231 11 119 $clause->quote || ''
232 3 127 $clause->proximity || ''
238 95 35 $self->default_field || $self->parser->default_field || undef
271 96 20 $clause->{'op'} || ':'
506 50 16 $clause->{'op'} || ':'
520 7 59 $clause->quote || ''
522 3 63 $clause->proximity || ''

or 3 conditions

line l !l&&r !l&&!r condition
154 33 86 0 shift() || $self
278 1 0 22 $value eq '*' or $value eq '?'
340 0 0 5 ref $value ne 'ARRAY' or @$value != 2
354 0 0 6 ref $value ne 'ARRAY' or @$value != 2
394 18 42 0 shift() || $self
476 60 1 5 $self->default_field || $self->parser->default_field
513 0 0 13 $value eq '*' or $value eq '?'
590 0 0 3 ref $value ne 'ARRAY' or @$value != 2
609 0 0 4 ref $value ne 'ARRAY' or @$value != 2
700 16 0 81 $is_phrase or @values > 1
775 2 0 79 $op eq '!~' or $op eq '!:' and $term =~ /[$wildcard\*\?]/
26 0 53 $op eq '~' or $op eq ':' and $term =~ /[$wildcard\*\?]/