Branch Coverage

blib/lib/Search/Query/Dialect/SQL.pm
Criterion Covered Total %
branch 57 70 81.4


line true false branch
92 0 43 unless (defined $self->parser->fields)
97 22 21 if ($$self{'default_field'} and not ref $$self{'default_field'})
123 66 36 unless exists $$tree{$prefix}
127 0 36 unless @clauses
129 46 0 if defined $_
140 2 39 unless defined $value
142 6 33 if ($self->fuzzify) { }
2 31 elsif ($self->fuzzify2) { }
143 4 2 unless $value =~ /[\*\%]/
146 2 0 unless $value =~ /[\*\%]/
167 5 41 if ($$clause{'op'} eq '()')
168 2 3 if ($clause->has_children and $clause->has_children == 1) { }
172 0 2 if ($prefix eq '-' and exists $$clause{'value'}{'+'})
179 0 3 $prefix eq '-' ? :
194 33 8 $$clause{'field'} ? :
201 18 23 if ($op eq ':')
204 4 37 if ($prefix eq '-')
207 8 33 if (defined $value and $value =~ /\%/)
208 0 8 $prefix eq '-' ? :
214 8 47 if $field->is_int
218 8 47 $field->is_int ? :
223 2 53 if ($op eq '..') { }
2 51 elsif ($op eq '!..') { }
8 43 elsif ($op =~ /\~/) { }
2 41 elsif (not defined $value) { }
224 0 2 if (ref $value ne 'ARRAY' or @$value != 2)
241 0 2 if (ref $value ne 'ARRAY' or @$value != 2)
259 0 8 if ($op eq '!~') { }
260 0 0 if ($field->is_int) { }
271 4 4 if ($field->is_int) { }
282 1 1 if ($op eq '=') { }
297 0 51 if (defined $field->callback)
312 4 37 $prefix eq '-' ? :
314 8 33 scalar @buf > 1 ? :
8 33 scalar @buf > 1 ? :