public abstract class MutationTestFitness extends TestFitnessFunction
Abstract MutationTestFitness class.
| Modifier and Type | Field and Description |
|---|---|
protected Set<BranchCoverageGoal> |
controlDependencies |
protected int |
diameter |
protected int |
mutantId |
protected Mutation |
mutation |
logger| Constructor and Description |
|---|
MutationTestFitness(Mutation mutation)
Constructor for MutationTestFitness.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TestFitnessFunction other)
Used to preorder goals by difficulty
|
boolean |
equals(Object obj) |
protected double |
getExecutionDistance(ExecutionResult result)
getExecutionDistance
|
abstract double |
getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
Mutation |
getMutation()
Getter for the field
mutation. |
String |
getTargetClass() |
String |
getTargetMethod() |
int |
hashCode() |
ExecutionResult |
runTest(TestCase test) |
static ExecutionResult |
runTest(TestCase test,
Mutation mutant)
runTest
|
String |
toString() |
compareClassName, getFitness, isCovered, isCovered, isCovered, isCovered, isCovered, isCoveredBy, isCoveredByResults, isMaximizationFunctiongetBestStoredIndividual, normalize, updateCoveredGoals, updateIndividual, updateIndividualprotected transient Mutation mutation
protected int mutantId
protected final Set<BranchCoverageGoal> controlDependencies
protected final int diameter
public Mutation getMutation()
Getter for the field mutation.
Mutation object.public ExecutionResult runTest(TestCase test)
runTest in class TestFitnessFunctionpublic static ExecutionResult runTest(TestCase test, Mutation mutant)
runTest
test - a TestCase object.mutant - a Mutation object.ExecutionResult object.protected double getExecutionDistance(ExecutionResult result)
getExecutionDistance
result - a ExecutionResult object.public abstract double getFitness(TestChromosome individual, ExecutionResult result)
getFitness
getFitness in class TestFitnessFunctionindividual - a TestChromosome object.result - a ExecutionResult object.public int compareTo(TestFitnessFunction other)
TestFitnessFunctioncompareTo in interface Comparable<TestFitnessFunction>compareTo in class TestFitnessFunctionpublic int hashCode()
hashCode in class TestFitnessFunctionpublic boolean equals(Object obj)
equals in class TestFitnessFunctionpublic String getTargetClass()
getTargetClass in class TestFitnessFunctionpublic String getTargetMethod()
getTargetMethod in class TestFitnessFunctionCopyright © 2010–2017 EvoSuite. All rights reserved.