|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TestComplexExplanationsOfNonMatches | Line # 42 | 1 | 1 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| (21) | |||
| Result | |||
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testT3
org.apache.lucene.search.TestComplexExplanations.testT3
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testFQ5
org.apache.lucene.search.TestComplexExplanations.testFQ5
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testMA3
org.apache.lucene.search.TestComplexExplanations.testMA3
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.test2
org.apache.lucene.search.TestComplexExplanations.test2
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSNot3
org.apache.lucene.search.TestComplexExplanations.testSNot3
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSNot8
org.apache.lucene.search.TestComplexExplanations.testSNot8
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testCSQ4
org.apache.lucene.search.TestComplexExplanations.testCSQ4
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testBQ22
org.apache.lucene.search.TestComplexExplanations.testBQ22
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testST6
org.apache.lucene.search.TestComplexExplanations.testST6
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSF7
org.apache.lucene.search.TestComplexExplanations.testSF7
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testST3
org.apache.lucene.search.TestComplexExplanations.testST3
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testBQ12
org.apache.lucene.search.TestComplexExplanations.testBQ12
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testBQ18
org.apache.lucene.search.TestComplexExplanations.testBQ18
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testMPQ7
org.apache.lucene.search.TestComplexExplanations.testMPQ7
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSNot9
org.apache.lucene.search.TestComplexExplanations.testSNot9
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testDMQ10
org.apache.lucene.search.TestComplexExplanations.testDMQ10
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testBQ21
org.apache.lucene.search.TestComplexExplanations.testBQ21
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSF3
org.apache.lucene.search.TestComplexExplanations.testSF3
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testSNot6
org.apache.lucene.search.TestComplexExplanations.testSNot6
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.test1
org.apache.lucene.search.TestComplexExplanations.test1
|
1 PASS | |
|
1.0
|
org.apache.lucene.search.TestComplexExplanations.testBQ13
org.apache.lucene.search.TestComplexExplanations.testBQ13
|
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 | ||
| 20 | import org.apache.lucene.store.RAMDirectory; | |
| 21 | ||
| 22 | import org.apache.lucene.index.IndexWriter; | |
| 23 | import org.apache.lucene.index.IndexReader; | |
| 24 | import org.apache.lucene.index.Term; | |
| 25 | ||
| 26 | import org.apache.lucene.analysis.WhitespaceAnalyzer; | |
| 27 | ||
| 28 | import org.apache.lucene.document.Document; | |
| 29 | import org.apache.lucene.document.Field; | |
| 30 | ||
| 31 | import org.apache.lucene.queryParser.QueryParser; | |
| 32 | import org.apache.lucene.queryParser.ParseException; | |
| 33 | ||
| 34 | import junit.framework.TestCase; | |
| 35 | ||
| 36 | import java.util.Random; | |
| 37 | import java.util.BitSet; | |
| 38 | ||
| 39 | /** | |
| 40 | * subclass of TestSimpleExplanations that verifies non matches. | |
| 41 | */ | |
| 42 | public class TestComplexExplanationsOfNonMatches | |
| 43 | extends TestComplexExplanations { | |
| 44 | ||
| 45 | /** | |
| 46 | * Overrides superclass to ignore matches and focus on non-matches | |
| 47 | * | |
| 48 | * @see CheckHits#checkNoMatchExplanations | |
| 49 | */ | |
| 50 | 34 |
public void qtest(Query q, int[] expDocNrs) throws Exception { |
| 51 | 34 | CheckHits.checkNoMatchExplanations(q, FIELD, searcher, expDocNrs); |
| 52 | } | |
| 53 | ||
| 54 | } | |
|
||||||||||