Clover icon

Coverage Report

  1. Project Clover database Fri Dec 6 2024 13:47:14 GMT
  2. Package com.stevesoft.pat

File DirFileRegex.java

 

Coverage histogram

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

Code metrics

0
4
3
1
31
17
3
0.75
1.33
3
1

Classes

Class Line # Actions
DirFileRegex 14 4 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    //
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    package com.stevesoft.pat;
9   
10    /**
11    * This class is just like FileRegex, except that its accept method only returns
12    * true if the file matching the pattern is a directory.
13    */
 
14    public class DirFileRegex extends FileRegex
15    {
 
16  0 toggle public DirFileRegex()
17    {
18  0 dirflag = DIR;
19    }
20   
 
21  0 toggle public DirFileRegex(String fp)
22    {
23  0 super(fp);
24  0 dirflag = DIR;
25    }
26   
 
27  0 toggle public static String[] list(String f)
28    {
29  0 return list(f, DIR);
30    }
31    }