Klasse CoveragePaint
java.lang.Object
io.jenkins.plugins.coverage.targets.CoveragePaint
- Alle implementierten Schnittstellen:
Serializable
Line-by-line coverage information.
- Seit:
- 29-Aug-2007 17:44:29
- Autor:
- Stephen Connolly
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected gnu.trove.map.TIntObjectMap
<io.jenkins.plugins.coverage.targets.CoveragePaint.CoveragePaintDetails> -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
add
(CoveragePaint child) int[]
int
getBranchCoverage
(int line) int
getBranchTotal
(int line) Getter for property 'conditionalCoverage'.int
getHits
(int line) Getter for property 'lineCoverage'.Getter for property 'results'.int
Returns the total number of lines in this painted file.int[]
Returns the lines of the source file that have no line coverage.boolean
isPainted
(int line) void
paint
(int line, int hits) void
paint
(int line, int hits, int branchCover, int branchCount) void
setTotalLines
(int totalLines) Setter for the propertytotalLines
.
-
Felddetails
-
lines
protected gnu.trove.map.TIntObjectMap<io.jenkins.plugins.coverage.targets.CoveragePaint.CoveragePaintDetails> lines
-
-
Konstruktordetails
-
CoveragePaint
-
-
Methodendetails
-
paint
public void paint(int line, int hits) -
paint
public void paint(int line, int hits, int branchCover, int branchCount) -
add
-
setTotalLines
public void setTotalLines(int totalLines) Setter for the propertytotalLines
.- Parameter:
totalLines
- The total number of lines in this file
-
getTotalLines
public int getTotalLines()Returns the total number of lines in this painted file. Unlike the denominator in the ratio returned bygetLineCoverage()
, which only indicates the number of executable lines, this includes even non-executable lines, such as white space, comments, brackets, and more.- Gibt zurück:
- value for the property
totalLines
.
-
getLineCoverage
Getter for property 'lineCoverage'.- Gibt zurück:
- Value for property 'lineCoverage'.
-
getConditionalCoverage
Getter for property 'conditionalCoverage'.- Gibt zurück:
- Value for property 'conditionalCoverage'.
-
getResults
Getter for property 'results'.- Gibt zurück:
- 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) -
getUncoveredLines
public int[] getUncoveredLines()Returns the lines of the source file that have no line coverage.- Gibt zurück:
- the lines without coverage
-
getAllLines
public int[] getAllLines()
-