Branch Coverage

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


line true false branch
41 115 62 unless exists $$tree{$prefix}
43 4 93 $no_prefix ? :
62 20 77 if ($$clause{'op'} eq '()')
63 4 16 if ($clause->has_children and $clause->has_children == 1) { }
74 3 74 if ($proximity)
79 3 74 if (ref $value eq 'ARRAY') { }
2 72 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 '..') { }
88 1 0 defined $$clause{'field'} ? :
93 2 0 defined $$clause{'field'} ? :
101 1 1 $$clause{'op'} eq '=' ? :
105 47 25 defined $$clause{'field'} ? :