| Package | Description |
|---|---|
| org.evosuite.coverage.dataflow | |
| org.evosuite.graphs.cfg | |
| org.evosuite.testcase.execution |
| Modifier and Type | Class and Description |
|---|---|
class |
Definition
An object of this class corresponds to a Definition inside the class under
test.
|
class |
Use
An object of this class corresponds to a Use inside the class under test.
|
| Modifier and Type | Method and Description |
|---|---|
static DefUse |
DefUseFactory.makeInstance(BytecodeInstruction instruction)
Convenience method to offer DefUse-Functionality for when
it doesn't matter whether a Definition or Use is returned
Returns a Definition instance
given a BytecodeInstruction for which isDefinition() is true
Otherwise returns a Use instance
given a BytecodeInstruction for which isUse() is true
WARNING: when given the wrap for an IINC this method will return a Definition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DefUse.sharesVariableWith(DefUse du)
Determines whether the given DefUse reads or writes the same variable as
this DefUse
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RawControlFlowGraph.hasDefClearPath(DefUse targetDU,
Set<String> handle)
Checks if the given DefUse has a definition-clear path to its methods
exit
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2010–2017 EvoSuite. All rights reserved.