|
||||||||||
| 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
|
int |
maxClazz
Variables used to store which child has to highest coverage for each coverage type. |
int |
maxComplexity
|
int |
maxInstruction
|
int |
maxLine
|
int |
maxMethod
|
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 |
getMaxBranch()
|
|
int |
getMaxClazz()
|
|
int |
getMaxComplexity()
|
|
int |
getMaxInstruction()
|
|
int |
getMaxLine()
|
|
int |
getMaxMethod()
|
|
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 |
setMaxBranch(int maxBranch)
|
|
void |
setMaxClazz(int maxClazz)
|
|
void |
setMaxComplexity(int maxComplexity)
|
|
void |
setMaxInstruction(int maxInstruction)
|
|
void |
setMaxLine(int maxLine)
|
|
void |
setMaxMethod(int maxMethod)
|
|
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 maxClazz
public int maxMethod
public int maxLine
public int maxComplexity
public int maxInstruction
public int maxBranch
| Constructor Detail |
|---|
public CoverageObject()
| Method Detail |
|---|
public int getMaxClazz()
public void setMaxClazz(int maxClazz)
maxClazz - the maxClazz to setpublic int getMaxMethod()
public void setMaxMethod(int maxMethod)
maxMethod - the maxMethod to setpublic int getMaxLine()
public void setMaxLine(int maxLine)
maxLine - the maxLine to setpublic int getMaxComplexity()
public void setMaxComplexity(int maxComplexity)
maxComplexity - the maxComplexity to setpublic int getMaxInstruction()
public void setMaxInstruction(int maxInstruction)
maxInstruction - the maxInstruction to setpublic int getMaxBranch()
public void setMaxBranch(int maxBranch)
maxBranch - the maxBranch to setpublic 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 | |||||||||