Klasse CoveragePaint

java.lang.Object
io.jenkins.plugins.coverage.targets.CoveragePaint
Alle implementierten Schnittstellen:
Serializable

public class CoveragePaint extends Object implements Serializable
Line-by-line coverage information.
Seit:
29-Aug-2007 17:44:29
Autor:
Stephen Connolly
Siehe auch:
  • Felddetails

    • lines

      protected gnu.trove.map.TIntObjectMap<io.jenkins.plugins.coverage.targets.CoveragePaint.CoveragePaintDetails> lines
  • Konstruktordetails

  • Methodendetails

    • 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)
    • setTotalLines

      public void setTotalLines(int totalLines)
      Setter for the property totalLines.
      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 by getLineCoverage(), 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

      public Ratio getLineCoverage()
      Getter for property 'lineCoverage'.
      Gibt zurück:
      Value for property 'lineCoverage'.
    • getConditionalCoverage

      public Ratio getConditionalCoverage()
      Getter for property 'conditionalCoverage'.
      Gibt zurück:
      Value for property 'conditionalCoverage'.
    • getResults

      public Map<CoverageElement,Ratio> 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()