Clover Coverage Report
Coverage timestamp: Fri May 9 2008 10:54:27 EST
../../../../img/srcFileCovDistChart5.png 77% of files have more coverage
8   40   6   1.33
0   14   0.75   6
6     1  
1    
 
  NonMatchingScorer       Line # 22 8 6 42.9% 0.42857143
 
  (12)
 
1    package org.apache.lucene.search;
2   
3    /**
4    * Copyright 2005 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 java.io.IOException;
20   
21    /** A scorer that matches no document at all. */
 
22    class NonMatchingScorer extends Scorer {
 
23  1241 toggle public NonMatchingScorer() { super(null); } // no similarity used
24   
 
25  0 toggle public int doc() { throw new UnsupportedOperationException(); }
26   
 
27  872 toggle public boolean next() throws IOException { return false; }
28   
 
29  0 toggle public float score() { throw new UnsupportedOperationException(); }
30   
 
31  369 toggle public boolean skipTo(int target) { return false; }
32   
 
33  0 toggle public Explanation explain(int doc) {
34  0 Explanation e = new Explanation();
35  0 e.setDescription("No document matches.");
36  0 return e;
37    }
38    }
39   
40