Clover Coverage Report
Coverage timestamp: Fri May 9 2008 10:54:27 EST
110   277   23   4.78
0   190   0.21   23
23     1  
1    
 
  TestComplexExplanations       Line # 45 110 23 100% 1.0
 
  (42)
 
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    */