junit.quilt.cover.generic
Class BranchSegment

java.lang.Object
  |
  +--junit.quilt.framework.CoverageSegmentImpl
        |
        +--junit.quilt.cover.generic.BranchSegment
All Implemented Interfaces:
CoverageSegment

public class BranchSegment
extends CoverageSegmentImpl


Constructor Summary
BranchSegment(java.lang.String fileName, FlowControlEdge fce)
           
 
Method Summary
 java.lang.String getDescription()
          getDescription This method returns a description of the segment which is defined by this class.
 int getNumVisits()
          getNumVisits This returns the number of times that this segment has been executed by the code.
 void setNumVisits(int numVisits)
           
 
Methods inherited from class junit.quilt.framework.CoverageSegmentImpl
addVisits, getAdvice, getCustomXML, getTimes, reset, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchSegment

public BranchSegment(java.lang.String fileName,
                     FlowControlEdge fce)
Method Detail

setNumVisits

public void setNumVisits(int numVisits)

getNumVisits

public int getNumVisits()
Description copied from interface: CoverageSegment
getNumVisits This returns the number of times that this segment has been executed by the code. This value may be either 0 or 1 if the algorithm cannot collect the number of visits, but can only collect whether it has been visited or not.
Overrides:
getNumVisits in class CoverageSegmentImpl

getDescription

public java.lang.String getDescription()
Description copied from interface: CoverageSegment
getDescription This method returns a description of the segment which is defined by this class. This should be similar to: Lines 14 - 20 of FooBar.java
Overrides:
getDescription in class CoverageSegmentImpl


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.