| Package | Description |
|---|---|
| org.evosuite.coverage.branch | |
| org.evosuite.coverage.cbranch | |
| org.evosuite.coverage.ibranch | |
| org.evosuite.graphs.cdg | |
| org.evosuite.graphs.cfg | |
| org.evosuite.result |
| Modifier and Type | Method and Description |
|---|---|
Branch |
OnlyBranchCoverageTestFitness.getBranch()
getBranch
|
Branch |
BranchCoverageTestFitness.getBranch()
getBranch
|
Branch |
BranchCoverageGoal.getBranch() |
Branch |
BranchPool.getBranch(int branchId)
Returns the Branch object associated with the given branchID
|
Branch |
BranchPool.getBranchForInstruction(BytecodeInstruction instruction)
getBranchForInstruction
|
Branch |
BranchPool.getDefaultBranchForSwitch(BytecodeInstruction v)
getDefaultBranchForSwitch
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Branch> |
BranchPool.getAllBranches() |
List<Branch> |
BranchPool.getBranchForLabel(org.objectweb.asm.tree.LabelNode label)
getBranchForLabel
|
List<Branch> |
BranchPool.getCaseBranchesForSwitch(BytecodeInstruction instruction)
getCaseBranchesForSwitch
|
List<Branch> |
BranchPool.retrieveBranchesInMethod(String className,
String methodName)
Returns a List containing all Branches in the given class and method
Should no such Branch exist an empty List is returned
|
| Modifier and Type | Method and Description |
|---|---|
int |
Branch.compareTo(Branch other) |
static BranchCoverageTestFitness |
BranchCoverageFactory.createBranchCoverageTestFitness(Branch b,
boolean branchExpressionValue)
Create a fitness function for branch coverage aimed at executing the
Branch identified by b as defined by branchExpressionValue.
|
static OnlyBranchCoverageTestFitness |
OnlyBranchCoverageFactory.createOnlyBranchCoverageTestFitness(Branch b,
boolean branchExpressionValue)
Create a fitness function for branch coverage aimed at executing the
Branch identified by b as defined by branchExpressionValue.
|
static ControlFlowDistance |
ControlFlowDistanceCalculator.getDistance(ExecutionResult result,
Branch branch,
boolean value,
String className,
String methodName)
Calculates the ControlFlowDistance indicating how far away the given
ExecutionResult was from executing the given Branch in a certain way,
depending on the given value.
|
| Constructor and Description |
|---|
BranchCoverageGoal(Branch branch,
boolean value,
String className,
String methodName)
Can be used to create an arbitrary
BranchCoverageGoal trying to cover the
given Branch |
BranchCoverageGoal(Branch branch,
boolean value,
String className,
String methodName,
int lineNumber)
Constructor accepting line number as parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Branch |
CBranchTestFitness.getBranch() |
| Modifier and Type | Method and Description |
|---|---|
Branch |
IBranchTestFitness.getBranch() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ControlDependenceGraph.isDirectlyControlDependentOn(BasicBlock insBlock,
Branch b)
Determines whether the given BasicBlock is directly control dependent on
the given Branch.
|
boolean |
ControlDependenceGraph.isDirectlyControlDependentOn(BytecodeInstruction ins,
Branch b)
Determines whether the given BytecodeInstruction is directly control
dependent on the given Branch.
|
| Modifier and Type | Method and Description |
|---|---|
Branch |
ControlDependency.getBranch()
Getter for the field
branch. |
Branch |
ControlFlowEdge.getBranchInstruction()
getBranchInstruction
|
Branch |
BytecodeInstruction.getControlDependentBranch()
This method returns a random Branch among all Branches this instruction
is control dependent on
If this instruction is only dependent on the root branch, this method
returns null
Since EvoSuite was previously unable to detect multiple control
dependencies for one instruction this method serves as a backwards
compatibility bridge
|
Branch |
BytecodeInstruction.toBranch()
Convenience method:
If this instruction is known by the BranchPool to be a Branch, you can
call this method in order to retrieve the corresponding Branch object
registered within the BranchPool.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BytecodeInstruction.getBranchExpressionValue(Branch b)
getBranchExpressionValue
|
ControlDependency |
BytecodeInstruction.getControlDependency(Branch branch)
getControlDependency
|
boolean |
BytecodeInstruction.isDirectlyControlDependentOn(Branch branch)
Determines whether this BytecodeInstruction is directly control dependent
on the given Branch.
|
| Constructor and Description |
|---|
ControlDependency(Branch branch,
boolean branchExpressionValue)
Constructor for ControlDependency.
|
| Constructor and Description |
|---|
BranchInfo(Branch branch,
boolean truthValue) |
Copyright © 2010–2017 EvoSuite. All rights reserved.