|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TestComplexExplanations | Line # 45 | 110 | 23 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| (42) | |||
| Result | |||
|
0.24060151
|
org.apache.lucene.search.TestComplexExplanations.test2
org.apache.lucene.search.TestComplexExplanations.test2
|
1 PASS | |
|
0.24060151
|
org.apache.lucene.search.TestComplexExplanations.test2
org.apache.lucene.search.TestComplexExplanations.test2
|
1 PASS | |
|
0.23308271
|
org.apache.lucene.search.TestComplexExplanations.test1
org.apache.lucene.search.TestComplexExplanations.test1
|
1 PASS | |
|
0.23308271
|
org.apache.lucene.search.TestComplexExplanations.test1
org.apache.lucene.search.TestComplexExplanations.test1
|
1 PASS | |
|
0.067669176
|
org.apache.lucene.search.TestComplexExplanations.testMPQ7
org.apache.lucene.search.TestComplexExplanations.testMPQ7
|
1 PASS | |
|
0.067669176
|
org.apache.lucene.search.TestComplexExplanations.testMPQ7
org.apache.lucene.search.TestComplexExplanations.testMPQ7
|
1 PASS | |
|
0.060150377
|
org.apache.lucene.search.TestComplexExplanations.testDMQ10
org.apache.lucene.search.TestComplexExplanations.testDMQ10
|
1 PASS | |
|
0.060150377
|
org.apache.lucene.search.TestComplexExplanations.testDMQ10
org.apache.lucene.search.TestComplexExplanations.testDMQ10
|
1 PASS | |
|
0.05263158
|
org.apache.lucene.search.TestComplexExplanations.testSNot9
org.apache.lucene.search.TestComplexExplanations.testSNot9
|
1 PASS | |
|
0.05263158
|
org.apache.lucene.search.TestComplexExplanations.testSNot8
org.apache.lucene.search.TestComplexExplanations.testSNot8
|
1 PASS | |
|
0.05263158
|
org.apache.lucene.search.TestComplexExplanations.testSNot8
org.apache.lucene.search.TestComplexExplanations.testSNot8
|
1 PASS | |
|
0.05263158
|
org.apache.lucene.search.TestComplexExplanations.testSNot9
org.apache.lucene.search.TestComplexExplanations.testSNot9
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testCSQ4
org.apache.lucene.search.TestComplexExplanations.testCSQ4
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testMA3
org.apache.lucene.search.TestComplexExplanations.testMA3
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testSF3
org.apache.lucene.search.TestComplexExplanations.testSF3
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testCSQ4
org.apache.lucene.search.TestComplexExplanations.testCSQ4
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testSNot6
org.apache.lucene.search.TestComplexExplanations.testSNot6
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testST6
org.apache.lucene.search.TestComplexExplanations.testST6
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testST3
org.apache.lucene.search.TestComplexExplanations.testST3
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testST6
org.apache.lucene.search.TestComplexExplanations.testST6
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testSF7
org.apache.lucene.search.TestComplexExplanations.testSF7
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testSNot3
org.apache.lucene.search.TestComplexExplanations.testSNot3
|
1 PASS | |
|
0.04511278
|
org.apache.lucene.search.TestComplexExplanations.testSF7
org.apache.lucene.search.TestComplexExplanations.testSF7
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ22
org.apache.lucene.search.TestComplexExplanations.testBQ22
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testT3
org.apache.lucene.search.TestComplexExplanations.testT3
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ13
org.apache.lucene.search.TestComplexExplanations.testBQ13
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ21
org.apache.lucene.search.TestComplexExplanations.testBQ21
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testSNot3
org.apache.lucene.search.TestComplexExplanations.testSNot3
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testSF3
org.apache.lucene.search.TestComplexExplanations.testSF3
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ18
org.apache.lucene.search.TestComplexExplanations.testBQ18
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testFQ5
org.apache.lucene.search.TestComplexExplanations.testFQ5
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testFQ5
org.apache.lucene.search.TestComplexExplanations.testFQ5
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testMA3
org.apache.lucene.search.TestComplexExplanations.testMA3
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testST3
org.apache.lucene.search.TestComplexExplanations.testST3
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ12
org.apache.lucene.search.TestComplexExplanations.testBQ12
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testSNot6
org.apache.lucene.search.TestComplexExplanations.testSNot6
|
1 PASS | |
|
0.030075189
|
org.apache.lucene.search.TestComplexExplanations.testBQ13
org.apache.lucene.search.TestComplexExplanations.testBQ13
|
1 PASS | |
|
0.015037594
|
org.apache.lucene.search.TestComplexExplanations.testBQ12
org.apache.lucene.search.TestComplexExplanations.testBQ12
|
1 PASS | |
|
0.015037594
|
org.apache.lucene.search.TestComplexExplanations.testBQ18
org.apache.lucene.search.TestComplexExplanations.testBQ18
|
1 PASS | |
|
0.015037594
|
org.apache.lucene.search.TestComplexExplanations.testT3
org.apache.lucene.search.TestComplexExplanations.testT3
|
1 PASS | |
|
0.015037594
|
org.apache.lucene.search.TestComplexExplanations.testBQ22
org.apache.lucene.search.TestComplexExplanations.testBQ22
|
1 PASS | |
|
0.015037594
|
org.apache.lucene.search.TestComplexExplanations.testBQ21
org.apache.lucene.search.TestComplexExplanations.testBQ21
|
1 PASS | |
| 1 | package org.apache.lucene.search; | |
| 2 | ||
| 3 | /** | |
| 4 | * Copyright 2006 Apache Software Foundation | |
| 5 | * | |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 7 | * you may not use this file except in compliance with the License. | |
| 8 | * You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, software | |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 15 | * See the License for the specific language governing permissions and | |
| 16 | * limitations under the License. | |
| 17 | */ | |
| 18 | ||
| 19 | import org.apache.lucene.search.BooleanClause.Occur; | |
| 20 | import org.apache.lucene.search.spans.*; | |
| 21 | import org.apache.lucene.store.RAMDirectory; | |
| 22 | ||
| 23 | import org.apache.lucene.index.IndexWriter; | |
| 24 | import org.apache.lucene.index.IndexReader; | |
| 25 | import org.apache.lucene.index.Term; | |
| 26 | ||
| 27 | import org.apache.lucene.analysis.WhitespaceAnalyzer; | |
| 28 | ||
| 29 | import org.apache.lucene.document.Document; | |
| 30 | import org.apache.lucene.document.Field; | |
| 31 | ||
| 32 | import org.apache.lucene.queryParser.QueryParser; | |
| 33 | import org.apache.lucene.queryParser.ParseException; | |
| 34 | ||
| 35 | import junit.framework.TestCase; | |
| 36 | ||
| 37 | import java.util.Random; | |
| 38 | import java.util.BitSet; | |
| 39 | ||
| 40 | /** | |
| 41 | * TestExplanations subclass that builds up super crazy complex queries | |
| 42 | * on the assumption that if the explanations work out right for them, | |
| 43 | * they should work for anything. | |
| 44 | */ | |