public class AllDefsCoverageTestFitness extends TestFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
static long |
singleFitnessTime
Constant
singleFitnessTime=0l |
logger| Constructor and Description |
|---|
AllDefsCoverageTestFitness(Definition def,
Map<Use,DefUseCoverageTestFitness> uses)
Constructor for AllDefsCoverageTestFitness.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TestFitnessFunction other)
Used to preorder goals by difficulty
|
boolean |
equals(Object obj) |
double |
getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
String |
getTargetClass() |
String |
getTargetMethod() |
int |
hashCode() |
String |
toString() |
compareClassName, getFitness, isCovered, isCovered, isCovered, isCovered, isCovered, isCoveredBy, isCoveredByResults, isMaximizationFunction, runTestgetBestStoredIndividual, normalize, updateCoveredGoals, updateIndividual, updateIndividualpublic AllDefsCoverageTestFitness(Definition def, Map<Use,DefUseCoverageTestFitness> uses)
Constructor for AllDefsCoverageTestFitness.
def - a Definition object.uses - a Map object.public double getFitness(TestChromosome individual, ExecutionResult result)
getFitness
getFitness in class TestFitnessFunctionindividual - a TestChromosome object.result - a ExecutionResult object.public int hashCode()
hashCode in class TestFitnessFunctionpublic boolean equals(Object obj)
equals in class TestFitnessFunctionpublic int compareTo(TestFitnessFunction other)
TestFitnessFunctioncompareTo in interface Comparable<TestFitnessFunction>compareTo in class TestFitnessFunctionpublic String getTargetClass()
getTargetClass in class TestFitnessFunctionpublic String getTargetMethod()
getTargetMethod in class TestFitnessFunctionCopyright © 2010–2017 EvoSuite. All rights reserved.