Coverage Report - net.sf.statcvs.pages.LOCPageMaker
 
Classes in this File Line Coverage Branch Coverage Complexity
LOCPageMaker
0%
0/12
N/A
1
 
 1  
 package net.sf.statcvs.pages;
 2  
 
 3  
 import net.sf.statcvs.Messages;
 4  
 import net.sf.statcvs.charts.ChartImage;
 5  
 import net.sf.statcvs.charts.LOCChartMaker.MainLOCChartMaker;
 6  
 import net.sf.statcvs.output.ReportConfig;
 7  
 
 8  
 public class LOCPageMaker {
 9  
     private final ReportConfig config;
 10  0
 
 11  0
     public LOCPageMaker(final ReportConfig config) {
 12  0
         this.config = config;
 13  0
     }
 14  
 
 15  0
     public NavigationNode toFile() {
 16  0
         final ChartImage chart = new MainLOCChartMaker("loc", this.config, "loc.png", this.config.getLargeChartSize()).toFile();
 17  0
 
 18  0
         final Page result = config.createPage("loc", Messages.getString("LOC_TITLE"), Messages.getString("LOC_TITLE"));
 19  0
         result.addAttribute(Messages.getString("TOTAL_LOC_TITLE"), this.config.getRepository().getCurrentLOC());
 20  0
         result.addAttribute(Messages.getString("MOST_RECENT_COMMIT"), this.config.getRepository().getLastDate());
 21  0
         result.add(chart);
 22  0
         return result;
 23  
     }
 24  
 }