Interface ICCBranchPoint

All Superinterfaces:
Comparable<ICCBranchPoint>, ICCBase, ICCBranchData, ICCCoverageDataBasic, ICCPercentItem, ICCTreeItem
All Known Subinterfaces:
ICCImportBranchPoint

public interface ICCBranchPoint extends ICCTreeItem, ICCCoverageDataBasic, ICCBranchData, Comparable<ICCBranchPoint>
Represents a branch point. Branch points have an origin and 1 or more targets Use ICCPercentItem.getPercentCoverage() to get the overall % coverage for the branch and its targets
Since:
9.0
  • Field Details

  • Method Details

    • getOrigin

      int getOrigin()
      Returns line that is the origin of the branch
      Returns:
      origin line number of branchpoint
    • getOriginStatement

      ICCStatement getOriginStatement()
      Returns statement that is the origin of the branch
      Returns:
      origin statement of branchpoint
    • getTargets

      List<Integer> getTargets(boolean hit)
      Returns a List of lines that are the targets of the branch
      Parameters:
      hit - if true, only hit targets are returned, if false all targets are returned
      Returns:
      list of line targets of branchpoint or empty list
    • getTargetStatements

      List<ICCStatement> getTargetStatements(boolean hit)
      Targets are returned in the order they were added Note: only returns statements if the coverage data supported statements use getTargets(boolean)
      Parameters:
      hit - if true, only hit targets are returned, if false all targets are returned
      Returns:
      list of statement targets of branchpoint or empty list
    • getTestcases

      List<ICCTestcase> getTestcases(int targetLine)
      Returns testcases that hit the target line
      Parameters:
      targetLine - testcases that hit this line of the branchpoint
      Returns:
      list of testcases that hit the requested target line
    • getTestcases

      List<ICCTestcase> getTestcases(ICCStatement targetStatement)
      Return testcases that hit the targe statement
      Parameters:
      targetStatement - testcases that hit this statement of the branchpoint
      Returns:
      list of testcases that hit the requested target statement
    • hasStatements

      boolean hasStatements()
      Returns true if this branch point is populated with statement information
      Returns:
      true of branchpoint has statements