|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectCodeCoverageTracker
public class CodeCoverageTracker extends Object implements IEventListener
| Modifier and Type | Field and Description |
|---|---|
Set<Branch> |
branchesCovered
|
Map<CoverageAtom,Set<Sequence>> |
branchesToCoveringSeqs
|
LinkedList<Class<?>> |
covClasses
|
long |
lastCovIncrease
|
static boolean |
stats_coverage
|
static int |
stop_when_plateau
|
| Constructor and Description |
|---|
CodeCoverageTracker(List<Class<?>> coverageInstrumentedClasses)
Creates a coverage tracker that tracks the classes specified in the given list. |
| Modifier and Type | Method and Description |
|---|---|
void |
explorationEnd()
Called immediately after the end of test generation. |
void |
explorationStart()
Called immediately at the start of test generation, before any generation steps have occurred. |
void |
generationStepPost(ExecutableSequence es)
Called by the AbstractGenerator during each generation iteration, immediately after a generation step() has completed. |
void |
generationStepPre()
Called by the AbstractGenerator during each generation iteration, immediately before a generation step() is performed. |
void |
progressThreadUpdate()
Called by ProgressDisplay at regular intervals to monitor progress. |
boolean |
stopGeneration()
Called by AbstractGenerator to determine if generation should stop. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int stop_when_plateau
public static boolean stats_coverage
public final LinkedList<Class<?>> covClasses
public final Map<CoverageAtom,Set<Sequence>> branchesToCoveringSeqs
public final Set<Branch> branchesCovered
public long lastCovIncrease
| Constructor Detail |
|---|
public CodeCoverageTracker(List<Class<?>> coverageInstrumentedClasses)
| Method Detail |
|---|
public void generationStepPre()
IEventListenerstep() is performed.
generationStepPre in interface IEventListenerAbstractGeneratorpublic void generationStepPost(ExecutableSequence es)
IEventListenerstep() has completed.
generationStepPost in interface IEventListeneres - sequence that was generated and executed in the last generation step.
Can b null, which means the last step was unable to generate a sequence
(e.g. due to a bad random choice).AbstractGeneratorpublic void progressThreadUpdate()
IEventListener
progressThreadUpdate in interface IEventListenerProgressDisplaypublic boolean stopGeneration()
IEventListener
stopGeneration in interface IEventListenerAbstractGeneratorpublic void explorationEnd()
IEventListener
explorationEnd in interface IEventListenerpublic void explorationStart()
IEventListener
explorationStart in interface IEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||