Clover Coverage Report - Pebble 2.5-SNAPSHOT
Coverage timestamp: Sat Jun 12 2010 09:39:29 EST
../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
1   25   1   1
0   8   1   1
1     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  TwoDigitFilenameFilter       Line # 11 1 0% 1 0 100% 1.0
 
  (16)
 
1    package net.sourceforge.pebble.dao.file;
2   
3    import java.io.FilenameFilter;
4    import java.io.File;
5   
6    /**
7    * Filters out files (directories) that aren't named \d\d.
8    *
9    * @author Simon Brown
10    */
 
11    public class TwoDigitFilenameFilter implements FilenameFilter {
12   
13    /**
14    * Tests if a specified file should be included in a file list.
15    *
16    * @param file the directory in which the file was found.
17    * @param name the name of the file.
18    * @return <code>true</code> if and only if the name should be
19    * included in the file list; <code>false</code> otherwise.
20    */
 
21  36 toggle public boolean accept(File file, String name) {
22  36 return name.matches("\\d\\d\\z");
23    }
24   
25    }