|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.emma.CoverageObject<SELF>
@ExportedBean public abstract class CoverageObject<SELF extends CoverageObject<SELF>>
Base class of all coverage objects.
| 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()
|
Ratio |
getBlockCoverage()
|
abstract hudson.model.AbstractBuild<?,?> |
getBuild()
Gets the build object that owns the whole coverage report tree. |
Ratio |
getClassCoverage()
|
Ratio |
getConditionCoverage()
Line coverage. |
Ratio |
getLineCoverage()
Line coverage. |
Ratio |
getMethodCoverage()
|
abstract SELF |
getPreviousResult()
Gets the corresponding coverage report object in the previous run that has the record. |
boolean |
hasClassCoverage()
|
boolean |
hasConditionCoverage()
|
boolean |
hasLineCoverage()
|
boolean |
isFailed()
|
String |
printFourCoverageColumns()
Used in the view to print out four table columns with the coverage info. |
protected static void |
printRatioCell(boolean failed,
Ratio ratio,
StringBuilder buf)
|
protected static void |
printRatioTable(Ratio ratio,
StringBuilder buf)
|
void |
setFailed()
Marks this coverage object as failed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoverageObject()
| Method Detail |
|---|
public boolean isFailed()
public void setFailed()
Rule@Exported(inline=true) public Ratio getClassCoverage()
@Exported(inline=true) public Ratio getMethodCoverage()
@Exported(inline=true) public Ratio getBlockCoverage()
@Exported(inline=true) public Ratio getLineCoverage()
@Exported(inline=true) public Ratio getConditionCoverage()
public abstract hudson.model.AbstractBuild<?,?> getBuild()
@Exported public abstract SELF getPreviousResult()
public String printFourCoverageColumns()
public boolean hasConditionCoverage()
public boolean hasLineCoverage()
public boolean hasClassCoverage()
protected static void printRatioCell(boolean failed,
Ratio ratio,
StringBuilder buf)
protected static void printRatioTable(Ratio ratio,
StringBuilder buf)
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic hudson.model.Api getApi()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||