Branch Coverage

blib/lib/Search/Query/Dialect/Native.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
41 117 63 unless exists $tree->{$prefix}
43 4 95 $no_prefix ? :
62 20 79 if ($clause->{'op'} eq '()')
63 4 16 if ($clause->has_children and $clause->has_children == 1) { }
74 3 76 if ($proximity)
79 3 76 if (ref $value eq 'ARRAY') { }
2 74 elsif (defined $clause->{'field'} and not defined $value) { }
80 1 2 if ($value->[0] =~ /[a-z]/i or $value->[1] =~ /[a-z]/i) { }
87 1 2 if ($clause->{'op'} eq '!..') { }
2 0 elsif ($clause->{'op'} eq '..') { }
89 1 0 defined $clause->{'field'} ? :
94 2 0 defined $clause->{'field'} ? :
102 1 1 $clause->{'op'} eq '=' ? :
107 48 26 defined $clause->{'field'} ? :