line |
true |
false |
branch |
123
|
3 |
204 |
if ($self->{'default_field'} and not ref $self->{'default_field'}) |
144
|
174 |
4 |
if ($self->parser->default_boolop eq '+') { } |
160
|
232 |
123 |
unless exists $tree->{$prefix} |
164
|
0 |
122 |
unless @clauses |
166
|
161 |
0 |
if defined $_ |
177
|
8 |
170 |
if (defined $value and $self->fuzzify) |
178
|
6 |
2 |
unless $value =~ /[\*]/ |
199
|
33 |
130 |
if ($clause->{'op'} eq '()') |
201
|
17 |
16 |
if ($clause->has_children and $clause->has_children == 1) { } |
202
|
1 |
16 |
if ($prefix eq '-') { } |
208
|
4 |
12 |
if ($str =~ /^\(/) { } |
217
|
2 |
14 |
if ($prefix eq '-') { } |
218
|
0 |
2 |
if ($str =~ /^\(/) { } |
233
|
3 |
127 |
if ($proximity) |
243
|
96 |
34 |
if ($clause->{'field'}) { } |
|
20 |
14 |
elsif (defined $default_field) { } |
247
|
20 |
0 |
if (ref $default_field) { } |
259
|
11 |
119 |
ref $clause->{'value'} ? : |
262
|
14 |
116 |
unless (@fields) |
263
|
0 |
14 |
if $self->debug |
265
|
1 |
13 |
$prefix eq '-' ? : |
273
|
22 |
94 |
if ($prefix eq '-') |
274
|
21 |
1 |
unless $op =~ /^!/ |
276
|
23 |
93 |
if (defined $value and $value =~ /[\*\?]|\Q$wildcard\E/) |
278
|
1 |
22 |
if ($value eq '*' or $value eq '?') |
279
|
1 |
0 |
unless ($self->allow_single_wildcards) |
289
|
0 |
160 |
if (defined $field->callback) |
294
|
0 |
160 |
if $self->debug > 1 |
298
|
4 |
156 |
unless (defined $value) |
303
|
2 |
158 |
if ($op eq '!~') { } |
|
35 |
123 |
elsif ($op eq '~') { } |
|
34 |
89 |
elsif ($op eq '!:') { } |
|
5 |
84 |
elsif ($op eq '..') { } |
|
6 |
78 |
elsif ($op eq '!..') { } |
304
|
0 |
2 |
unless $value =~ /\Q$wildcard\E/ |
315
|
2 |
33 |
unless $value =~ /\Q$wildcard\E/ |
324
|
1 |
33 |
if ($prefix eq '-' and $clause->{'op'} eq '!:') { } |
340
|
0 |
5 |
if (ref $value ne 'ARRAY' or @$value != 2) |
354
|
0 |
6 |
if (ref $value ne 'ARRAY' or @$value != 2) |
371
|
22 |
93 |
$prefix eq '-' ? : |
373
|
15 |
100 |
scalar @buf > 1 ? : |
|
15 |
100 |
scalar @buf > 1 ? : |
400
|
118 |
62 |
unless exists $tree->{$prefix} |
404
|
0 |
84 |
unless (@lucy_clauses) |
410
|
68 |
16 |
if (defined $clause->{'field'}) |
414
|
0 |
62 |
unless @clauses |
417
|
13 |
49 |
$joiner eq 'NOT' ? : |
419
|
1 |
61 |
if ($prefix eq '-' and @clauses > 1) |
427
|
48 |
14 |
if (@clauses == 1) { } |
|
0 |
14 |
elsif (not $has_explicit_fields and $prefix eq '-') { } |
428
|
1 |
47 |
if ($prefix eq '-' and $has_explicit_fields and not $clauses[0]->isa($lucy_class)) { } |
451
|
0 |
60 |
unless (@q) |
458
|
58 |
2 |
@q == 1 ? : |
471
|
18 |
66 |
if ($clause->{'op'} eq '()') |
478
|
50 |
16 |
if ($clause->{'field'}) { } |
|
16 |
0 |
elsif (defined $default_field) { } |
482
|
16 |
0 |
if (ref $default_field) { } |
494
|
7 |
59 |
ref $clause->{'value'} ? : |
498
|
0 |
66 |
unless (@fields) |
508
|
14 |
52 |
if ($prefix eq '-') |
509
|
13 |
1 |
unless $op =~ /^!/ |
511
|
13 |
53 |
if (defined $value and $value =~ /[\*\?]|\Q$wildcard\E/) |
513
|
0 |
13 |
if ($value eq '*' or $value eq '?') |
514
|
0 |
0 |
unless ($self->allow_single_wildcards) |
521
|
7 |
59 |
$quote eq '"' ? : |
528
|
0 |
108 |
if (defined $field->callback) |
533
|
0 |
108 |
if ($self->debug) |
547
|
4 |
104 |
unless (defined $value) |
548
|
3 |
1 |
if ($op eq '!:') { } |
549
|
2 |
1 |
if ($prefix eq '-') { } |
552
|
1 |
1 |
if ($clause->{'op'} eq ':') { } |
589
|
3 |
101 |
if ($op eq '..') { } |
|
4 |
97 |
elsif ($op eq '!..') { } |
590
|
0 |
3 |
if (ref $value ne 'ARRAY' or @$value != 2) |
609
|
0 |
4 |
if (ref $value ne 'ARRAY' or @$value != 2) |
630
|
92 |
5 |
if (&blessed(scalar $field->analyzer) and not ref $value) |
633
|
27 |
65 |
if ($value =~ /[$wildcard\*\?]/) { } |
648
|
27 |
0 |
if ($field->analyzer->isa('Lucy::Analysis::PolyAnalyzer')) { } |
|
0 |
0 |
elsif ($field->analyzer->isa('Lucy::Analysis::SnowballStemmer')) { } |
651
|
27 |
54 |
if ($ana->isa('Lucy::Analysis::SnowballStemmer')) |
664
|
27 |
0 |
if ($stemmer) |
666
|
18 |
9 |
if ($tok =~ s/^(\w+)\*$/$1/) |
680
|
78 |
0 |
if defined $_ |
696
|
0 |
97 |
unless (@values) |
700
|
16 |
81 |
if ($is_phrase or @values > 1) { } |
701
|
12 |
4 |
if ($proximity) { } |
703
|
4 |
8 |
if ($self->ignore_order_in_proximity) { } |
719
|
0 |
4 |
if $self->debug |
740
|
2 |
2 |
if ($op eq '!:') { } |
769
|
0 |
81 |
unless (defined $term and length $term) |
775
|
2 |
79 |
if ($op eq '!~' or $op eq '!:' and $term =~ /[$wildcard\*\?]/) { } |
|
26 |
53 |
elsif ($op eq '~' or $op eq ':' and $term =~ /[$wildcard\*\?]/) { } |
|
20 |
33 |
elsif ($op eq '!:') { } |
778
|
0 |
2 |
unless $term =~ /\Q$wildcard\E/ |
781
|
1 |
1 |
if ($prefix eq '-') { } |
|
1 |
0 |
elsif ($op =~ /^\!/) { } |
817
|
2 |
24 |
unless $term =~ /\Q$wildcard\E/ |
856
|
0 |
66 |
unless (@buf) |
859
|
52 |
14 |
if (@buf == 1) |
862
|
2 |
12 |
$prefix eq '-' ? : |