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 Linksymbol

    • lines Linksymbol

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

  • Methodendetails Linksymbol

    • paint Linksymbol

      public void paint(int line, int hits)
    • paint Linksymbol

      public void paint(int line, int hits, int branchCover, int branchCount)
    • add Linksymbol

      public void add(CoveragePaint child)
    • setTotalLines Linksymbol

      public void setTotalLines(int totalLines)
      Setter for the property totalLines.
      Parameter:
      totalLines - The total number of lines in this file
    • getTotalLines Linksymbol

      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 Linksymbol

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

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

      public Map<CoverageElement,Ratio> getResults()
      Getter for property 'results'.
      Gibt zurück:
      Value for property 'results'.
    • isPainted Linksymbol

      public boolean isPainted(int line)
    • getHits Linksymbol

      public int getHits(int line)
    • getBranchTotal Linksymbol

      public int getBranchTotal(int line)
    • getBranchCoverage Linksymbol

      public int getBranchCoverage(int line)
    • getUncoveredLines Linksymbol

      public int[] getUncoveredLines()
      Returns the lines of the source file that have no line coverage.
      Gibt zurück:
      the lines without coverage
    • getAllLines Linksymbol

      public int[] getAllLines()