| Package | Description |
|---|---|
| org.evosuite.coverage.dataflow | |
| org.evosuite.junit | |
| org.evosuite.testcase.execution |
| Modifier and Type | Method and Description |
|---|---|
ExecutionTrace |
DefUseCoverageTestFitness.getCoveringTrace()
Getter for the field
coveringTrace. |
| Modifier and Type | Method and Description |
|---|---|
static int |
DefUseExecutionTraceAnalyzer.getActiveDefinitionIdAt(String targetVariable,
ExecutionTrace trace,
int usePos,
int objectId)
Returns the defID of the Definition that is active in the given trace at
usePos
|
static Object |
DefUseExecutionTraceAnalyzer.getActiveObjectAtDefinition(ExecutionTrace trace,
String targetVariable,
int objectId,
int usePos) |
static Object |
DefUseExecutionTraceAnalyzer.getActiveObjectAtUse(ExecutionTrace trace,
String targetVariable,
int objectId,
int usePos) |
static List<Integer> |
DefUseExecutionTraceAnalyzer.getDefinitionPositions(Definition targetDefinition,
ExecutionTrace trace,
int objectId)
Returns all the duCounterPositions of the goalUse in the given trace
|
static int |
DefUseExecutionTraceAnalyzer.getNextOverwritingDefinitionPosition(Definition targetDefinition,
ExecutionTrace objectTrace,
Integer goalDefPos,
Integer objectId)
Determines the overwriting definition for the given goalDefPos
An overwriting definition position is the duCounter position of the next
definition for goalVariable that was not the goalDefinition
If no such definition exists Integer.MAX_VALUE is returned
|
static Map<Integer,Integer> |
DefUseExecutionTraceAnalyzer.getOverwritingDefinitionsBetween(Definition targetDefinition,
ExecutionTrace trace,
int startingDUPos,
int endDUPos,
int objectId)
Returns the a map of definitionIds from all definitions that overwrite
the goal definition in the given duCounter-range pointing to the duPos at
which they first overwrote.
|
static int |
DefUseExecutionTraceAnalyzer.getPreviousDefinitionId(String targetVariable,
ExecutionTrace objectTrace,
Integer targetDUPos,
Integer objectId)
Determines the definitionId for targetVar before tagetDUPos in the given
ExecutionTrace
If no such definition exists -1 is returned
|
static List<Integer> |
DefUseExecutionTraceAnalyzer.getUsePositions(Use targetUse,
ExecutionTrace trace,
int objectId)
Returns all the duCounterPositions of the targetUse in the given trace
|
static void |
DefUseExecutionTraceAnalyzer.printFinishCalls(ExecutionTrace trace)
Prints all information found concerning finished calls of the given
ExecutionTrace
|
void |
DefUseCoverageTestFitness.setCovered(TestChromosome individual,
ExecutionTrace trace,
Integer objectId)
setCovered
|
static boolean |
DefUseFitnessCalculator.traceCoversGoal(DefUseCoverageTestFitness goal,
Chromosome individual,
ExecutionTrace trace)
Only a sanity check function for testing purposes
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionTrace |
JUnitResult.getExecutionTrace() |
| Modifier and Type | Method and Description |
|---|---|
void |
JUnitResult.setExecutionTrace(ExecutionTrace et) |
| Modifier and Type | Class and Description |
|---|---|
class |
ExecutionTraceImpl
Keep a trace of the program execution
|
class |
ExecutionTraceProxy
ExecutionTraceProxy class.
|
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionTrace |
ExecutionResult.trace
Trace recorded during execution
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionTrace |
ExecutionTracer.getTrace()
Return trace of current execution
|
ExecutionTrace |
ExecutionResult.getTrace()
Accessor to the execution trace
|
ExecutionTrace |
ExecutionTraceProxy.getTraceForObject(int objectId)
Returns a copy of this trace where all MethodCall-information traced from
objects other then the one identified by the given objectID is removed
from the finished_calls-field
WARNING: this will not affect this.true_distances and other fields of
ExecutionTrace this only affects the finished_calls field (which should
suffice for BranchCoverageFitness-calculation)
|
ExecutionTrace |
ExecutionTraceImpl.getTraceForObject(int objectId)
Returns a copy of this trace where all MethodCall-information traced from
objects other then the one identified by the given objectID is removed
from the finished_calls-field
WARNING: this will not affect this.true_distances and other fields of
ExecutionTrace this only affects the finished_calls field (which should
suffice for BranchCoverageFitness-calculation)
|
ExecutionTrace |
ExecutionTrace.getTraceForObject(int objectId)
Returns a copy of this trace where all MethodCall-information traced from
objects other then the one identified by the given objectID is removed
from the finished_calls-field
WARNING: this will not affect this.true_distances and other fields of
ExecutionTrace this only affects the finished_calls field (which should
suffice for BranchCoverageFitness-calculation)
|
ExecutionTrace |
ExecutionTraceProxy.getTraceInDUCounterRange(DefUse targetDU,
boolean wantToCoverTargetDU,
int duCounterStart,
int duCounterEnd)
Returns a copy of this trace where all MethodCall-information associated
with duCounters outside the range of the given duCounter-Start and -End
is removed from the finished_calls-traces
finished_calls without any point in the trace at which the given
duCounter range is hit are removed completely
Also traces for methods other then the one that holds the given targetDU
are removed as well as trace information that would pass the branch of
the given targetDU If wantToCoverTargetDU is false instead those
targetDUBranch information is removed that would pass the alternative
branch of targetDU
The latter is because this method only gets called when the given
targetDU was not active in the given duCounter-range if and only if
wantToCoverTargetDU is set, and since useFitness calculation is on branch
level and the branch of the targetDU can be passed before the targetDU is
passed this can lead to a flawed branchFitness.
|
ExecutionTrace |
ExecutionTraceImpl.getTraceInDUCounterRange(DefUse targetDU,
boolean wantToCoverTargetDU,
int duCounterStart,
int duCounterEnd)
Returns a copy of this trace where all MethodCall-information associated
with duCounters outside the range of the given duCounter-Start and -End
is removed from the finished_calls-traces
finished_calls without any point in the trace at which the given
duCounter range is hit are removed completely
Also traces for methods other then the one that holds the given targetDU
are removed as well as trace information that would pass the branch of
the given targetDU If wantToCoverTargetDU is false instead those
targetDUBranch information is removed that would pass the alternative
branch of targetDU
The latter is because this method only gets called when the given
targetDU was not active in the given duCounter-range if and only if
wantToCoverTargetDU is set, and since useFitness calculation is on branch
level and the branch of the targetDU can be passed before the targetDU is
passed this can lead to a flawed branchFitness.
|
ExecutionTrace |
ExecutionTrace.getTraceInDUCounterRange(DefUse targetDU,
boolean wantToCoverTargetDU,
int duCounterStart,
int duCounterEnd)
Returns a copy of this trace where all MethodCall-information associated
with duCounters outside the range of the given duCounter-Start and -End
is removed from the finished_calls-traces
finished_calls without any point in the trace at which the given
duCounter range is hit are removed completely
Also traces for methods other then the one that holds the given targetDU
are removed as well as trace information that would pass the branch of
the given targetDU If wantToCoverTargetDU is false instead those
targetDUBranch information is removed that would pass the alternative
branch of targetDU
The latter is because this method only gets called when the given
targetDU was not active in the given duCounter-range if and only if
wantToCoverTargetDU is set, and since useFitness calculation is on branch
level and the branch of the targetDU can be passed before the targetDU is
passed this can lead to a flawed branchFitness.
|
ExecutionTrace |
ExecutionTraceProxy.lazyClone()
Create a lazy copy
|
ExecutionTrace |
ExecutionTraceImpl.lazyClone()
Create a lazy copy
|
ExecutionTrace |
ExecutionTrace.lazyClone()
Create a lazy copy
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExecutionResult.setTrace(ExecutionTrace trace)
Set execution trace to different value
|
Copyright © 2010–2017 EvoSuite. All rights reserved.