public class LineCoverageSuiteFitness extends TestSuiteFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
double |
bestFitness |
Set<Integer> |
lines |
int |
maxCoveredLines |
Set<Integer> |
removedLines |
Set<Integer> |
toRemoveLines |
| Constructor and Description |
|---|
LineCoverageSuiteFitness() |
| Modifier and Type | Method and Description |
|---|---|
double |
getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite)
Calculate and set fitness function #TODO the 'set fitness' part should be
done by some abstract super class of all FitnessFunctions
|
boolean |
updateCoveredGoals()
if the fitness function contains an archive, updates the archive and the fitness values of the population, and returns true.
|
isMaximizationFunction, runTest, runTestSuitegetBestStoredIndividual, normalize, updateIndividual, updateIndividualpublic boolean updateCoveredGoals()
FitnessFunctionupdateCoveredGoals in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>public double getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite)
getFitness in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>suite - a Chromosome object.Copyright © 2010–2017 EvoSuite. All rights reserved.