Condition Coverage

blib/lib/Search/Query/Parser.pm
Criterion Covered Total %
condition 72 101 71.2


and 3 conditions

line !l l&&!r l&&r condition
441 2 10 18 $self->{'field_class'} eq 'Search::Query::Field' and $self->{'query_class'}->field_class ne $self->{'field_class'}
521 21 4 0 $reftype ne 'ARRAY' and $reftype ne 'HASH'
614 81 0 1 not defined $query and $self->sloppy
629 77 0 1 $self->error and $self->sloppy
639 0 0 77 defined $query and not $self->error
0 50 27 defined $query and not $self->error and $self->croak_on_error
708 3 0 0 ref $newterms[0] and ref $clause->value
780 29 93 0 defined $clause->field and length $clause->field
895 13 1 112 defined $clause->field and length $clause->field
1011 249 10 1 $fixup and s/^(")([^"]*?)\s*$//
1070 0 63 0 defined $str and $str =~ s/^\)\s*//
1071 0 2 2 defined $str and $fixup
1089 184 0 5 $null_term and $term eq $null_term
1150 220 66 3 $pre_bool and $post_bool
286 3 0 $pre_bool and $post_bool and $pre_bool ne $post_bool
1163 61 162 66 $sign eq '+' and $bool eq 'OR'
1164 178 108 3 $sign eq '' and $bool eq 'AND'
1165 273 16 0 $sign eq '-' and $bool eq 'OR'

or 2 conditions

line l !l condition
960 33 322 $parent_op || ''

or 3 conditions

line l !l&&r !l&&!r condition
521 0 0 25 not $reftype or $reftype ne 'ARRAY' and $reftype ne 'HASH'
599 0 84 0 shift() || $self->query_class
607 81 0 3 defined $query or $self->sloppy
780 92 0 30 defined $clause->field and length $clause->field or defined $default_field
873 14 6 81 not defined $clause->field or $field_names[0] ne $clause->field
993 0 134 157 s/^"($field_regex)"\s*($op_regex)\s*// or s/^'?($field_regex)'?\s*($op_regex)\s*//
134 1 156 s/^"($field_regex)"\s*($op_regex)\s*// or s/^'?($field_regex)'?\s*($op_regex)\s*// or s/^()($op_nofield_regex)\s*//
1011 3 6 282 s/^(")([^"]*?)"~(\d+)\s*// or s/^(")([^"]*?)"\s*//
9 22 260 s/^(")([^"]*?)"~(\d+)\s*// or s/^(")([^"]*?)"\s*// or s/^(')([^']*?)'\s*//
1016 24 0 7 $op || $parent_op || ($field ? ':' : '')
1028 0 0 1 $op || $parent_op || ($field ? ':' : '')
1051 1 0 6 index($t1, ' ') != -1 or index($t2, ' ') != -1
1102 5 0 0 $op || $parent_op || ($field ? ':' : '')
1111 110 0 74 $op || $parent_op || ($field ? ':' : '')
1158 69 66 154 $pre_bool || $post_bool