hudson.plugins.jacoco.report
Class CoverageReport

java.lang.Object
  extended by hudson.plugins.jacoco.model.CoverageObject<SELF>
      extended by hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
          extended by hudson.plugins.jacoco.report.AggregatedReport<CoverageReport,CoverageReport,PackageReport>
              extended by hudson.plugins.jacoco.report.CoverageReport
All Implemented Interfaces:
hudson.model.ModelObject

public final class CoverageReport
extends AggregatedReport<CoverageReport,CoverageReport,PackageReport>

Root object of the coverage report.

Author:
Kohsuke Kawaguchi, Ognjen Bubalo

Field Summary
 
Fields inherited from class hudson.plugins.jacoco.model.CoverageObject
branch, clazz, complexity, instruction, line, maxBranch, maxClazz, maxComplexity, maxCoveredBranch, maxCoveredClazz, maxCoveredComplexity, maxCoveredInstruction, maxCoveredLine, maxCoveredMethod, maxInstruction, maxLine, maxMethod, maxMissedBranch, maxMissedClazz, maxMissedComplexity, maxMissedInstruction, maxMissedLine, maxMissedMethod, method
 
Constructor Summary
CoverageReport(JacocoBuildAction action, ExecutionFileLoader executionFileLoader)
          Loads the exec files using JaCoCo API.
 
Method Summary
 hudson.model.AbstractBuild<?,?> getBuild()
          Gets the build object that owns the whole coverage report tree.
 CoverageReport getPreviousResult()
          Gets the corresponding coverage report object in the previous run that has the record.
protected  void printRatioTable(Coverage ratio, StringBuilder buf)
           
 
Methods inherited from class hudson.plugins.jacoco.report.AggregatedReport
add, getChildren, getDynamic, hasChildren, hasChildrenClassCoverage, hasChildrenLineCoverage, setFailed, setParent
 
Methods inherited from class hudson.plugins.jacoco.report.AbstractReport
addCoverage, getDisplayName, getName, getParent, setName
 
Methods inherited from class hudson.plugins.jacoco.model.CoverageObject
doGraph, getApi, getBranchCoverage, getClassCoverage, getComplexityScore, getInstructionCoverage, getLineCoverage, getMaxCoveredBranch, getMaxCoveredClazz, getMaxCoveredComplexity, getMaxCoveredInstruction, getMaxCoveredLine, getMaxCoveredMethod, getMaxMissedBranch, getMaxMissedClazz, getMaxMissedComplexity, getMaxMissedInstruction, getMaxMissedLine, getMaxMissedMethod, getMethodCoverage, hasClassCoverage, hasLineCoverage, isFailed, printFourCoverageColumns, printRatioCell, setAllCovTypes, setCoverage, setMaxCoveredBranch, setMaxCoveredClazz, setMaxCoveredComplexity, setMaxCoveredInstruction, setMaxCoveredLine, setMaxCoveredMethod, setMaxMissedBranch, setMaxMissedClazz, setMaxMissedComplexity, setMaxMissedInstruction, setMaxMissedLine, setMaxMissedMethod, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoverageReport

public CoverageReport(JacocoBuildAction action,
                      ExecutionFileLoader executionFileLoader)
               throws IOException
Loads the exec files using JaCoCo API. Creates the reporting objects and the report tree.

Parameters:
action -
reports -
Throws:
IOException
Method Detail

printRatioTable

protected void printRatioTable(Coverage ratio,
                               StringBuilder buf)
Overrides:
printRatioTable in class CoverageObject<CoverageReport>

getPreviousResult

public CoverageReport getPreviousResult()
Description copied from class: CoverageObject
Gets the corresponding coverage report object in the previous run that has the record.

Overrides:
getPreviousResult in class AbstractReport<CoverageReport,CoverageReport>
Returns:
null if no earlier record was found.

getBuild

public hudson.model.AbstractBuild<?,?> getBuild()
Description copied from class: CoverageObject
Gets the build object that owns the whole coverage report tree.

Overrides:
getBuild in class AbstractReport<CoverageReport,CoverageReport>


Copyright © 2004-2013 Hudson. All Rights Reserved.