public class DefUseCoverageSuiteFitness extends TestSuiteFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
protected BranchCoverageSuiteFitness |
branchFitness |
Map<DefUseCoverageTestFitness.DefUsePairType,Integer> |
coveredGoals |
static Map<DefUseCoverageTestFitness.DefUsePairType,Integer> |
mostCoveredGoals
Constant
mostCoveredGoals |
Map<DefUseCoverageTestFitness.DefUsePairType,Integer> |
totalGoals
Constant
totalGoals |
logger| Constructor and Description |
|---|
DefUseCoverageSuiteFitness() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countMostCoveredGoals()
countMostCoveredGoals
|
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
|
double |
getFitnessAlternative(AbstractTestSuiteChromosome<? extends ExecutableChromosome> individual) |
double |
getFitnessOld(Chromosome individual) |
static Map<DefUseCoverageTestFitness.DefUsePairType,Integer> |
initTotalGoals() |
static void |
printCoverage()
printCoverage
|
isMaximizationFunction, runTest, runTestSuitegetBestStoredIndividual, normalize, updateCoveredGoals, updateIndividual, updateIndividualpublic Map<DefUseCoverageTestFitness.DefUsePairType,Integer> totalGoals
totalGoalspublic static final Map<DefUseCoverageTestFitness.DefUsePairType,Integer> mostCoveredGoals
mostCoveredGoalspublic Map<DefUseCoverageTestFitness.DefUsePairType,Integer> coveredGoals
protected final BranchCoverageSuiteFitness branchFitness
public double getFitnessAlternative(AbstractTestSuiteChromosome<? extends ExecutableChromosome> individual)
public double getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite)
FitnessFunctiongetFitness in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>suite - a Chromosome object.public double getFitnessOld(Chromosome individual)
public static Map<DefUseCoverageTestFitness.DefUsePairType,Integer> initTotalGoals()
public static int countMostCoveredGoals()
countMostCoveredGoals
public static void printCoverage()
printCoverage
Copyright © 2010–2017 EvoSuite. All rights reserved.