Clover icon

Coverage Report

  1. Project Clover database Mon Nov 11 2024 15:05:32 GMT
  2. Package com.stevesoft.pat

File NoPattern.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

0
3
3
1
33
18
3
1
1
3
1

Classes

Class Line # Actions
NoPattern 17 3 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package //
2    // This software is now distributed according to
3    // the Lesser Gnu Public License. Please see
4    // http://www.gnu.org/copyleft/lesser.txt for
5    // the details.
6    // -- Happy Computing!
7    //
8    com.stevesoft.pat;
9   
10    import java.util.Hashtable;
11   
12    /**
13    * The idea behind this class is simply to eliminate the need for testing to see
14    * if Regex.thePattern is null. Every instruction we can eliminate from _search
15    * will help.
16    */
 
17    public class NoPattern extends Pattern
18    {
 
19  0 toggle public String toString()
20    {
21  0 return "(?e=#)[^#d#D]";
22    }
23   
 
24  0 toggle public int matchInternal(int i, Pthings p)
25    {
26  0 return -1;
27    }
28   
 
29  0 toggle Pattern clone1(Hashtable h)
30    {
31  0 return new NoPattern();
32    }
33    }