Clover Coverage Report - KS LUM 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 13:25:47 EDT
../../../../../../../../img/srcFileCovDistChart5.png 38% of files have more coverage
10   36   10   1.67
8   28   1   6
6     1.67  
1    
 
  NLHelper       Line # 5 10 0% 10 12 50% 0.5
 
  (40)
 
1    package org.kuali.student.lum.statement.config.context.util;
2   
3    import org.kuali.student.lum.lu.dto.CluInfo;
4   
 
5    public class NLHelper {
6   
 
7  0 toggle public static String getProperGrammar(Number number, String singularText, String pluralText) {
8  0 return (number.intValue() == 1 ? singularText : pluralText);
9    }
10   
 
11  45 toggle public static String getProperGrammar(Number number, String singularText) {
12  45 return (number.intValue() == 1 ? singularText : singularText + "s");
13    }
14   
 
15  0 toggle public static String getProperGrammar(String number, String singularText, String pluralText) {
16  0 return getProperGrammar(Integer.valueOf(number), singularText, pluralText);
17    }
18   
 
19  7 toggle public static String getProperGrammar(String number, String singularText) {
20  7 return getProperGrammar(Integer.valueOf(number), singularText);
21    }
22   
 
23  0 toggle public static String getCluOrCluSetAsShortNames(CluInfo clu, NLCluSet cluSet) {
24  0 if(clu != null) {
25  0 return clu.getOfficialIdentifier().getShortName();
26    }
27  0 return cluSet.getCluSetAsShortName();
28    }
29   
 
30  8 toggle public static String getCluOrCluSetAsLongNames(CluInfo clu, NLCluSet cluSet) {
31  8 if(clu != null) {
32  4 return clu.getOfficialIdentifier().getLongName();
33    }
34  4 return cluSet.getCluSetAsLongName();
35    }
36    }