public class OnlyBranchCoverageSuiteFitness extends TestSuiteFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
double |
bestFitness |
int |
maxCoveredBranches |
int |
totalBranches |
int |
totalGoals |
| Constructor and Description |
|---|
OnlyBranchCoverageSuiteFitness()
Constructor for BranchCoverageSuiteFitness.
|
| 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 int totalBranches
public int totalGoals
public int maxCoveredBranches
public double bestFitness
public OnlyBranchCoverageSuiteFitness()
Constructor for BranchCoverageSuiteFitness.
public 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.