|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.jacoco.model.CoverageObject<SELF>
@ExportedBean public abstract class CoverageObject<SELF extends CoverageObject<SELF>>
Base class of all coverage objects.
| Field Summary | |
|---|---|
Coverage |
branch
|
Coverage |
clazz
|
Coverage |
complexity
|
Coverage |
instruction
|
Coverage |
line
|
int |
maxBranch
Deprecated. |
int |
maxClazz
Deprecated. |
int |
maxComplexity
Deprecated. |
int |
maxCoveredBranch
|
int |
maxCoveredClazz
Variables used to store which child has to highest coverage for each coverage type. |
int |
maxCoveredComplexity
|
int |
maxCoveredInstruction
|
int |
maxCoveredLine
|
int |
maxCoveredMethod
|
int |
maxInstruction
Deprecated. |
int |
maxLine
Deprecated. |
int |
maxMethod
Deprecated. |
int |
maxMissedBranch
|
int |
maxMissedClazz
|
int |
maxMissedComplexity
|
int |
maxMissedInstruction
|
int |
maxMissedLine
|
int |
maxMissedMethod
|
Coverage |
method
|
| Constructor Summary | |
|---|---|
CoverageObject()
|
|
| Method Summary | ||
|---|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Generates the graph that shows the coverage trend up to this report. |
|
hudson.model.Api |
getApi()
|
|
Coverage |
getBranchCoverage()
|
|
abstract hudson.model.AbstractBuild<?,?> |
getBuild()
Gets the build object that owns the whole coverage report tree. |
|
Coverage |
getClassCoverage()
|
|
Coverage |
getComplexityScore()
|
|
Coverage |
getInstructionCoverage()
|
|
Coverage |
getLineCoverage()
Line coverage. |
|
int |
getMaxCoveredBranch()
|
|
int |
getMaxCoveredClazz()
|
|
int |
getMaxCoveredComplexity()
|
|
int |
getMaxCoveredInstruction()
|
|
int |
getMaxCoveredLine()
|
|
int |
getMaxCoveredMethod()
|
|
int |
getMaxMissedBranch()
|
|
int |
getMaxMissedClazz()
|
|
int |
getMaxMissedComplexity()
|
|
int |
getMaxMissedInstruction()
|
|
int |
getMaxMissedLine()
|
|
int |
getMaxMissedMethod()
|
|
Coverage |
getMethodCoverage()
|
|
CoverageObject |
getParent()
|
|
abstract SELF |
getPreviousResult()
Gets the corresponding coverage report object in the previous run that has the record. |
|
boolean |
hasClassCoverage()
|
|
boolean |
hasLineCoverage()
|
|
boolean |
isFailed()
|
|
String |
printFourCoverageColumns()
Used in the view to print out four table columns with the coverage info. |
|
protected void |
printRatioCell(boolean failed,
Coverage ratio,
StringBuilder buf)
|
|
protected void |
printRatioTable(Coverage ratio,
StringBuilder buf)
|
|
protected
|
setAllCovTypes(ReportLevel reportToSet,
org.jacoco.core.analysis.ICoverageNode covReport)
|
|
|
setCoverage(ReportLevel reportToSet,
org.jacoco.core.analysis.ICoverageNode covReport)
|
|
void |
setFailed()
Marks this coverage object as failed. |
|
void |
setMaxCoveredBranch(int maxBranch)
|
|
void |
setMaxCoveredClazz(int maxClazz)
|
|
void |
setMaxCoveredComplexity(int maxComplexity)
|
|
void |
setMaxCoveredInstruction(int maxInstruction)
|
|
void |
setMaxCoveredLine(int maxLine)
|
|
void |
setMaxCoveredMethod(int maxMethod)
|
|
void |
setMaxMissedBranch(int maxMissedBranch)
|
|
void |
setMaxMissedClazz(int maxMissedClazz)
|
|
void |
setMaxMissedComplexity(int maxMissedComplexity)
|
|
void |
setMaxMissedInstruction(int maxMissedInstruction)
|
|
void |
setMaxMissedLine(int maxMissedLine)
|
|
void |
setMaxMissedMethod(int maxMissedMethod)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Coverage clazz
public Coverage method
public Coverage line
public Coverage complexity
public Coverage instruction
public Coverage branch
public int maxCoveredClazz
public int maxCoveredMethod
public int maxCoveredLine
public int maxCoveredComplexity
public int maxCoveredInstruction
public int maxCoveredBranch
public int maxMissedClazz
public int maxMissedMethod
public int maxMissedLine
public int maxMissedComplexity
public int maxMissedInstruction
public int maxMissedBranch
@Deprecated public transient int maxClazz
@Deprecated public transient int maxMethod
@Deprecated public transient int maxLine
@Deprecated public transient int maxComplexity
@Deprecated public transient int maxInstruction
@Deprecated public transient int maxBranch
| Constructor Detail |
|---|
public CoverageObject()
| Method Detail |
|---|
public int getMaxCoveredClazz()
public void setMaxCoveredClazz(int maxClazz)
public int getMaxCoveredMethod()
public void setMaxCoveredMethod(int maxMethod)
public int getMaxCoveredLine()
public void setMaxCoveredLine(int maxLine)
public int getMaxCoveredComplexity()
public void setMaxCoveredComplexity(int maxComplexity)
public int getMaxCoveredInstruction()
public void setMaxCoveredInstruction(int maxInstruction)
public int getMaxCoveredBranch()
public void setMaxCoveredBranch(int maxBranch)
public int getMaxMissedClazz()
public void setMaxMissedClazz(int maxMissedClazz)
public int getMaxMissedMethod()
public void setMaxMissedMethod(int maxMissedMethod)
public int getMaxMissedLine()
public void setMaxMissedLine(int maxMissedLine)
public int getMaxMissedComplexity()
public void setMaxMissedComplexity(int maxMissedComplexity)
public int getMaxMissedInstruction()
public void setMaxMissedInstruction(int maxMissedInstruction)
public int getMaxMissedBranch()
public void setMaxMissedBranch(int maxMissedBranch)
public boolean isFailed()
public void setFailed()
Rule@Exported(inline=true) public Coverage getClassCoverage()
@Exported(inline=true) public Coverage getMethodCoverage()
@Exported(inline=true) public Coverage getComplexityScore()
@Exported(inline=true) public Coverage getInstructionCoverage()
@Exported(inline=true) public Coverage getBranchCoverage()
@Exported(inline=true) public Coverage getLineCoverage()
public abstract hudson.model.AbstractBuild<?,?> getBuild()
@Exported public abstract SELF getPreviousResult()
public CoverageObject getParent()
public String printFourCoverageColumns()
public boolean hasLineCoverage()
public boolean hasClassCoverage()
protected void printRatioCell(boolean failed,
Coverage ratio,
StringBuilder buf)
protected void printRatioTable(Coverage ratio,
StringBuilder buf)
protected <ReportLevel extends AggregatedReport> void setAllCovTypes(ReportLevel reportToSet,
org.jacoco.core.analysis.ICoverageNode covReport)
public <ReportLevel extends AggregatedReport> void setCoverage(ReportLevel reportToSet,
org.jacoco.core.analysis.ICoverageNode covReport)
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic hudson.model.Api getApi()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||