Condition Coverage

blib/lib/Search/Query/Dialect/KSx.pm
Criterion Covered Total %
condition 57 80 71.2


and 3 conditions

line !l l&&!r l&&r condition
96 59 117 3 $$self{'default_field'} and not ref $$self{'default_field'}
174 0 15 17 $clause->has_children and $clause->has_children == 1
366 40 10 1 $prefix eq '-' and @clauses > 1
374 11 2 0 not $has_explicit_fields and $prefix eq '-'
375 28 2 8 $prefix eq '-' and $has_explicit_fields
30 5 3 $prefix eq '-' and $has_explicit_fields and not $clauses[0]->isa($ks_class)
516 5 0 83 blessed($field->analyzer) and not ref $value
625 0 72 0 defined $term and length $term
630 54 16 0 $op eq '!:' and $term =~ /[$wildcard\*\?]/
16 28 0 $op eq ':' and $term =~ /[$wildcard\*\?]/

or 2 conditions

line l !l condition
204 11 106 $clause->quote || ''
205 3 114 $clause->proximity || ''
211 82 35 $self->default_field || $self->parser->default_field || undef
236 84 19 $$clause{'op'} || ':'
440 38 15 $$clause{'op'} || ':'
454 7 46 $clause->quote || ''
456 3 50 $clause->proximity || ''

or 3 conditions

line l !l&&r !l&&!r condition
127 32 76 0 shift() || $self
243 1 0 22 $value eq '*' or $value eq '?'
293 0 0 5 ref $value ne 'ARRAY' or @$value != 2
307 0 0 6 ref $value ne 'ARRAY' or @$value != 2
347 17 32 0 shift() || $self
418 47 1 5 $self->default_field || $self->parser->default_field
447 0 0 13 $value eq '*' or $value eq '?'
473 0 0 3 ref $value ne 'ARRAY' or @$value != 2
492 0 0 4 ref $value ne 'ARRAY' or @$value != 2
573 16 0 72 $is_phrase or @values > 1
630 2 0 70 $op eq '!~' or $op eq '!:' and $term =~ /[$wildcard\*\?]/
26 0 44 $op eq '~' or $op eq ':' and $term =~ /[$wildcard\*\?]/