Condition Coverage

blib/lib/Search/Query/Parser.pm
Criterion Covered Total %
condition 69 98 70.4


and 3 conditions

line !l l&&!r l&&r condition
519 18 4 0 $reftype ne 'ARRAY' and $reftype ne 'HASH'
612 79 0 1 not defined $query and $self->sloppy
627 76 0 1 $self->error and $self->sloppy
637 0 0 76 defined $query and not $self->error
0 50 26 defined $query and not $self->error and $self->croak_on_error
706 3 0 0 ref $newterms[0] and ref $clause->value
778 28 91 0 defined $clause->field and length $clause->field
893 12 1 110 defined $clause->field and length $clause->field
1009 244 10 1 $fixup and s/^(")([^"]*?)\s*$//
1068 0 63 0 defined $str and $str =~ s/^\)\s*//
1069 0 2 2 defined $str and $fixup
1087 179 0 5 $null_term and $term eq $null_term
1148 216 65 3 $pre_bool and $post_bool
281 3 0 $pre_bool and $post_bool and $pre_bool ne $post_bool
1161 61 159 64 $sign eq '+' and $bool eq 'OR'
1162 175 106 3 $sign eq '' and $bool eq 'AND'
1163 268 16 0 $sign eq '-' and $bool eq 'OR'

or 2 conditions

line l !l condition
958 33 317 $parent_op || ''

or 3 conditions

line l !l&&r !l&&!r condition
519 0 0 22 not $reftype or $reftype ne 'ARRAY' and $reftype ne 'HASH'
597 0 82 0 shift() || $self->query_class
605 79 0 3 defined $query or $self->sloppy
778 90 0 29 defined $clause->field and length $clause->field or defined $default_field
871 14 6 79 not defined $clause->field or $field_names[0] ne $clause->field
991 0 131 155 s/^"($field_regex)"\s*($op_regex)\s*// or s/^'?($field_regex)'?\s*($op_regex)\s*//
131 1 154 s/^"($field_regex)"\s*($op_regex)\s*// or s/^'?($field_regex)'?\s*($op_regex)\s*// or s/^()($op_nofield_regex)\s*//
1009 3 6 277 s/^(")([^"]*?)"~(\d+)\s*// or s/^(")([^"]*?)"\s*//
9 22 255 s/^(")([^"]*?)"~(\d+)\s*// or s/^(")([^"]*?)"\s*// or s/^(')([^']*?)'\s*//
1014 24 0 7 $op || $parent_op || ($field ? ':' : '')
1026 0 0 1 $op || $parent_op || ($field ? ':' : '')
1049 1 0 6 index($t1, ' ') != -1 or index($t2, ' ') != -1
1100 5 0 0 $op || $parent_op || ($field ? ':' : '')
1109 107 0 72 $op || $parent_op || ($field ? ':' : '')
1156 68 65 151 $pre_bool || $post_bool