public class MethodTraceCoverageFactory extends AbstractFitnessFactory<MethodTraceCoverageTestFitness>
MethodTraceCoverageFactory class.
Measures coverage of methods by analysing execution traces, that is, the method can be covered by indirect calls, not necessarily be an statement in a test case.goalComputationTime| Constructor and Description |
|---|
MethodTraceCoverageFactory() |
| Modifier and Type | Method and Description |
|---|---|
static MethodTraceCoverageTestFitness |
createMethodTestFitness(BytecodeInstruction instruction)
Convenience method calling createMethodTestFitness(class,method) with
the respective class and method of the given BytecodeInstruction.
|
static MethodTraceCoverageTestFitness |
createMethodTestFitness(String className,
String method)
Create a fitness function for branch coverage aimed at covering the root
branch of the given method in the given class.
|
List<MethodTraceCoverageTestFitness> |
getCoverageGoals()
Generate a list of goals to cover
|
protected static boolean |
isUsable(Constructor<?> c) |
protected static boolean |
isUsable(Method m) |
getFitness, isCUTprotected static boolean isUsable(Method m)
protected static boolean isUsable(Constructor<?> c)
public List<MethodTraceCoverageTestFitness> getCoverageGoals()
List object.public static MethodTraceCoverageTestFitness createMethodTestFitness(String className, String method)
className - a String object.method - a String object.BranchCoverageTestFitness
object.public static MethodTraceCoverageTestFitness createMethodTestFitness(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.BranchCoverageTestFitness
object.Copyright © 2010–2017 EvoSuite. All rights reserved.