|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectCovWitnessHelperVisitor
public class CovWitnessHelperVisitor extends Object implements ExecutionVisitor
This class is only used by the branch-directed generation research project. Records the branches covered after executing all-but-last method call in a sequence. ASSUMPTIONS: 1. Coverage has been cleared before executing the sequence. 2. The statements in a sequence are all executed and visited from beginning to end. This visitor will not work properly with the naive generator that backtracks during execution.
| Constructor and Description |
|---|
CovWitnessHelperVisitor(CodeCoverageTracker tracker)
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(ExecutableSequence executableSequence)
Called before execution of a sequence, to allow the visitor to perform any initialization steps required before execution. |
void |
visitAfter(ExecutableSequence sequence,
int idx)
Invoked by ExecutableSequence.execute after the i-th statement executes. |
void |
visitBefore(ExecutableSequence sequence,
int i)
Invoked by ExecutableSequence.execute before the i-th statement executes. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CovWitnessHelperVisitor(CodeCoverageTracker tracker)
tracker - the classes that are coverage-instrumented.| Method Detail |
|---|
public void initialize(ExecutableSequence executableSequence)
ExecutionVisitor
initialize in interface ExecutionVisitor
public void visitAfter(ExecutableSequence sequence,
int idx)
ExecutionVisitor
visitAfter in interface ExecutionVisitor
public void visitBefore(ExecutableSequence sequence,
int i)
ExecutionVisitor
visitBefore in interface ExecutionVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||