hudson.plugins.cobertura.targets
Class CoveragePaint

java.lang.Object
  extended by hudson.plugins.cobertura.targets.CoveragePaint
All Implemented Interfaces:
java.io.Serializable

public class CoveragePaint
extends java.lang.Object
implements java.io.Serializable

Line-by-line coverage information.

Since:
29-Aug-2007 17:44:29
Author:
Stephen Connolly
See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.Integer,hudson.plugins.cobertura.targets.CoveragePaint.CoveragePaintDetails> lines
           
 
Constructor Summary
CoveragePaint(CoverageElement source)
           
 
Method Summary
 void add(CoveragePaint child)
           
 int getBranchCoverage(int line)
           
 int getBranchTotal(int line)
           
 Ratio getConditionalCoverage()
          Getter for property 'conditionalCoverage'.
 int getHits(int line)
           
 Ratio getLineCoverage()
          Getter for property 'lineCoverage'.
 java.util.Map<CoverageMetric,Ratio> getResults()
          Getter for property 'results'.
 boolean isPainted(int line)
           
 void paint(int line, int hits)
           
 void paint(int line, int hits, int branchCover, int branchCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

protected java.util.Map<java.lang.Integer,hudson.plugins.cobertura.targets.CoveragePaint.CoveragePaintDetails> lines
Constructor Detail

CoveragePaint

public CoveragePaint(CoverageElement source)
Method Detail

paint

public void paint(int line,
                  int hits)

paint

public void paint(int line,
                  int hits,
                  int branchCover,
                  int branchCount)

add

public void add(CoveragePaint child)

getLineCoverage

public Ratio getLineCoverage()
Getter for property 'lineCoverage'.

Returns:
Value for property 'lineCoverage'.

getConditionalCoverage

public Ratio getConditionalCoverage()
Getter for property 'conditionalCoverage'.

Returns:
Value for property 'conditionalCoverage'.

getResults

public java.util.Map<CoverageMetric,Ratio> getResults()
Getter for property 'results'.

Returns:
Value for property 'results'.

isPainted

public boolean isPainted(int line)

getHits

public int getHits(int line)

getBranchTotal

public int getBranchTotal(int line)

getBranchCoverage

public int getBranchCoverage(int line)


Copyright © 2010. All Rights Reserved.