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