public class StatementCoverageTestFitness extends TestFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
protected List<BranchCoverageTestFitness> |
branchFitnesses |
protected BytecodeInstruction |
goalInstruction |
logger| Constructor and Description |
|---|
StatementCoverageTestFitness(BytecodeInstruction goalInstruction)
Constructor for StatementCoverageTestFitness.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TestFitnessFunction other)
Used to preorder goals by difficulty
|
boolean |
equals(Object obj) |
String |
explain()
explain
|
double |
getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
BranchCoverageTestFitness |
getLastCoveringFitness()
Getter for the field
lastCoveringFitness. |
String |
getTargetClass() |
String |
getTargetMethod() |
int |
hashCode() |
String |
toString() |
compareClassName, getFitness, isCovered, isCovered, isCovered, isCovered, isCovered, isCoveredBy, isCoveredByResults, isMaximizationFunction, runTestgetBestStoredIndividual, normalize, updateCoveredGoals, updateIndividual, updateIndividualprotected transient BytecodeInstruction goalInstruction
protected List<BranchCoverageTestFitness> branchFitnesses
public StatementCoverageTestFitness(BytecodeInstruction goalInstruction)
Constructor for StatementCoverageTestFitness.
goalInstruction - a BytecodeInstruction object.public double getFitness(TestChromosome individual, ExecutionResult result)
getFitness
getFitness in class TestFitnessFunctionindividual - a TestChromosome object.result - a ExecutionResult object.public BranchCoverageTestFitness getLastCoveringFitness()
Getter for the field lastCoveringFitness.
BranchCoverageTestFitness
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.