Package com.google.test.metric.report

Examples of com.google.test.metric.report.GradeCategories


    HistogramChartUrl chart = grade.createHistogram(0, 0, asList(1, 2, 2, 3, 3, 3));
    assertEquals("s:AVAAAAAAAAA,AApAAAAAAAA,AAA9AAAAAAA", chart.getMap().get("chd"));
  }

  public void testCreateHistogramBug() throws Exception {
    grade = new GradeCategories(50, 100);
    HistogramChartUrl chart = grade.createHistogram(0, 0, asList(4, 90));
    assertEquals("s:f,f,A", chart.getMap().get("chd"));
  }
View Full Code Here


    super.addClassCost(classCost);
    analysisModel.addClassCost(classCost);
  }

  public String getHistogram() {
    GradeCategories gradeCategories = new GradeCategories(maxExcellentCost, maxAcceptableCost);
    HistogramChartUrl histogramChartUrl =
        gradeCategories.createHistogram(HISTOGRAM_WIDTH, HISTOGRAM_HEIGHT, costs, new Logarithmic());
    return histogramChartUrl.getHtml();
  }
View Full Code Here

        break;
      case props:
        report = new PropertiesReportGenerator(out, costModel);
        break;
      case source:
        GradeCategories gradeCategories = new GradeCategories(options.getMaxExcellentCost(),
            options.getMaxAcceptableCost());
        report = new SourceReportGenerator(gradeCategories, sourceLoader,
            new File("te-report"), costModel, new Date(), options.getWorstOffenderCount(), cfg);
        break;
      case xml:
View Full Code Here

TOP

Related Classes of com.google.test.metric.report.GradeCategories

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.