Interface ICCImportBranchPoint

All Superinterfaces:
Comparable<ICCBranchPoint>, ICCBase, ICCBranchData, ICCBranchPoint, ICCCoverageDataBasic, ICCImportBranchData, ICCPercentItem, ICCTreeItem

public interface ICCImportBranchPoint extends ICCBranchPoint, ICCImportBranchData
Represents a branch point e.g. if ( ) else switch() Use createBranchPoint to create the source location of the branch
Since:
9.0
  • Method Details

    • addTarget

      int addTarget(int line)
      Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the source
      Parameters:
      line - target line number
      Returns:
      index of the added target. Use later when marking a target as hit
    • addTarget

      int addTarget(ICCStatement statement)
      Adds a target of the branch's source The order the targets is significant and *should* match the appearance in the source
      Parameters:
      statement - target statement
      Returns:
      index of the added target. Use later when marking a target as hit
    • setTargetHit

      void setTargetHit(int targetIndex, ICCTestcase testcase)
      Indicates that the target at the index was hit, if there are multiple sources then this will be tied to the first source The index is based on the order that the targets were added to this artifact zero based
      Parameters:
      targetIndex - branchpoint target index
      testcase - testcase that hit the target