| line |
true |
false |
branch |
|
20
|
12 |
29 |
if s/^\s+// |
|
23
|
7 |
22 |
if ($1) |
|
24
|
1 |
28 |
if (s/^\+//) { } |
|
|
4 |
24 |
elsif (s/^(-|!|NOT)\s*//i) { } |
|
28
|
5 |
24 |
if (s/^([^\s(":]+)://) |
|
31
|
1 |
28 |
if (/^\(/) { } |
|
|
3 |
25 |
elsif (/^"/) { } |
|
|
0 |
25 |
elsif (s/^(\S+)\*//) { } |
|
33
|
0 |
1 |
unless ($extracted) |
|
41
|
0 |
3 |
unless ($extracted) |
|
51
|
0 |
25 |
unless s/([^\s\^]+)// |
|
56
|
2 |
27 |
if (s/^\^(\d+(?:.\d+)?)//) |
|
68
|
6 |
14 |
if ($$elem{'conj'}) |
|
69
|
1 |
19 |
if ($$elem{'type'} eq 'REQUIRED') { } |
|
|
3 |
16 |
elsif ($$elem{'type'} eq 'PROHIBITED') { } |
|
74
|
2 |
18 |
if (exists $$elem{'field'}) |
|
77
|
19 |
1 |
if ($$elem{'query'} eq 'TERM') { } |
|
|
1 |
0 |
elsif ($$elem{'query'} eq 'SUBQUERY') { } |
|
|
0 |
0 |
elsif ($$elem{'query'} eq 'PHRASE') { } |
|
84
|
1 |
19 |
if (exists $$elem{'boost'}) |
|
94
|
0 |
6 |
unless $field |
|
96
|
4 |
2 |
if @$self == 1 and $$self[0]{'type'} eq 'NORMAL' |
|
111
|
1 |
0 |
if (exists $$term{'conj'} and $$term{'conj'} eq 'AND' and @$clauses) |
|
113
|
1 |
0 |
unless $$clauses[-1]->prohibited |
|
116
|
0 |
3 |
unless $q |
|
119
|
1 |
0 |
if exists $$term{'conj'} and $$term{'conj'} eq 'AND' and not $prohibited |
|
137
|
2 |
4 |
exists $$self{'field'} ? : |
|
148
|
1 |
6 |
if exists $$self{'boost'} |
|
160
|
1 |
1 |
if @words == 1 |
|
164
|
2 |
0 |
exists $$self{'field'} ? : |
|
170
|
0 |
1 |
if (exists $$self{'slop'}) |
|
181
|
0 |
0 |
exists $$self{'field'} ? : |