|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.cobertura.targets.CoverageResult
@ExportedBean(defaultVisibility=2) public class CoverageResult
Coverage result for a specific programming element.
Instances of CoverageResult form a tree structure to progressively represent smaller elements.
| Field Summary | |
|---|---|
hudson.model.AbstractBuild<?,?> |
owner
|
| Constructor Summary | |
|---|---|
CoverageResult(CoverageElement elementType,
CoverageResult parent,
String name)
|
|
| Method Summary | |
|---|---|
void |
doCoverageHighlightedSource(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
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()
|
CoverageResult |
getChild(String name)
|
Set<CoverageElement> |
getChildElements()
Getter for property 'childElements'. |
Set<CoverageMetric> |
getChildMetrics(CoverageElement element)
|
Set<String> |
getChildren()
Getter for keys of property 'children'. |
Set<String> |
getChildren(CoverageElement element)
|
Map<String,CoverageResult> |
getChildrenReal()
Getter for property 'children'. |
Ratio |
getCoverage(CoverageMetric metric)
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
CoverageElement |
getElement()
Getter for property 'element'. |
Set<CoverageMetric> |
getMetrics()
Getter for property 'metrics'. |
String |
getName()
Getter for property 'name'. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Getter for property 'owner'. |
CoveragePaint |
getPaint()
Getter for property 'paint'. |
Map<String,CoveragePaint> |
getPaintedSources()
Getter for property 'paintedSources'. |
CoverageResult |
getParent()
Getter for property 'parent'. |
List<CoverageResult> |
getParents()
Getter for property 'parents'. |
CoverageResult |
getPreviousResult()
Getter for property 'previousResult'. |
String |
getRelativeSourcePath()
Getter for property 'relativeSourcePath'. |
Map<CoverageMetric,Ratio> |
getResults()
Getter for property 'results'. |
CoverageTree |
getResultsAPI()
Getter for property 'results'. |
String |
getSourceFileContent()
Getter for property 'sourceFileContent'. |
boolean |
isSourceCodeLevel()
Getter for property 'sourceCodeLevel'. |
boolean |
isSourceFileAvailable()
Getter for property 'sourceFileAvailable'. |
void |
paint(int line,
int hits)
|
void |
paint(int line,
int hits,
int branchHits,
int branchTotal)
|
String |
relativeUrl(CoverageResult parent)
|
void |
setOwner(hudson.model.AbstractBuild<?,?> owner)
Setter for property 'owner'. |
void |
setRelativeSourcePath(String relativeSourcePath)
Setter for property 'relativeSourcePath'. |
void |
updateMetric(CoverageMetric metric,
Ratio additionalResult)
|
String |
urlTransform(String name)
|
String |
xmlTransform(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public hudson.model.AbstractBuild<?,?> owner
| Constructor Detail |
|---|
public CoverageResult(CoverageElement elementType,
CoverageResult parent,
String name)
| Method Detail |
|---|
public String getRelativeSourcePath()
public void setRelativeSourcePath(String relativeSourcePath)
relativeSourcePath - Value to set for property 'relativeSourcePath'.public String getName()
public CoverageResult getParent()
public CoverageElement getElement()
public boolean isSourceCodeLevel()
public CoveragePaint getPaint()
public void paint(int line,
int hits)
public void paint(int line,
int hits,
int branchHits,
int branchTotal)
public boolean isSourceFileAvailable()
public String getSourceFileContent()
public List<CoverageResult> getParents()
public Set<CoverageElement> getChildElements()
public Set<String> getChildren(CoverageElement element)
public Set<CoverageMetric> getChildMetrics(CoverageElement element)
public Set<String> getChildren()
public Map<String,CoverageResult> getChildrenReal()
public Map<CoverageMetric,Ratio> getResults()
@Exported(name="results") public CoverageTree getResultsAPI()
public String urlTransform(String name)
public String xmlTransform(String name)
public String relativeUrl(CoverageResult parent)
public CoverageResult getChild(String name)
public Ratio getCoverage(CoverageMetric metric)
public Set<CoverageMetric> getMetrics()
public void updateMetric(CoverageMetric metric,
Ratio additionalResult)
public hudson.model.AbstractBuild<?,?> getOwner()
public void setOwner(hudson.model.AbstractBuild<?,?> owner)
owner - Value to set for property 'owner'.public CoverageResult getPreviousResult()
public Object getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOException
public void doCoverageHighlightedSource(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOException
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic Map<String,CoveragePaint> getPaintedSources()
public hudson.model.Api getApi()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||