public class ExceptionCoverageSuiteFitness extends TestSuiteFitnessFunction
| Constructor and Description |
|---|
ExceptionCoverageSuiteFitness() |
| Modifier and Type | Method and Description |
|---|---|
static void |
calculateExceptionInfo(List<ExecutionResult> results,
Map<String,Set<Class<?>>> implicitTypesOfExceptions,
Map<String,Set<Class<?>>> explicitTypesOfExceptions,
Map<String,Set<Class<?>>> declaredTypesOfExceptions,
ExceptionCoverageSuiteFitness contextFitness)
Given the list of results, fill the 3 given (empty) maps with exception information.
|
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
|
static int |
getMaxExceptionsCovered() |
static int |
getNumClassExceptions(Map<String,Set<Class<?>>> exceptions) |
static int |
getNumExceptions(Map<String,Set<Class<?>>> exceptions) |
isMaximizationFunction, runTest, runTestSuitegetBestStoredIndividual, normalize, updateCoveredGoals, updateIndividual, updateIndividualpublic static int getMaxExceptionsCovered()
public double getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite)
FitnessFunctiongetFitness in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>suite - a Chromosome object.public static void calculateExceptionInfo(List<ExecutionResult> results, Map<String,Set<Class<?>>> implicitTypesOfExceptions, Map<String,Set<Class<?>>> explicitTypesOfExceptions, Map<String,Set<Class<?>>> declaredTypesOfExceptions, ExceptionCoverageSuiteFitness contextFitness) throws IllegalArgumentException
ExceptionCoverageFactoryresults - implicitTypesOfExceptions - explicitTypesOfExceptions - declaredTypesOfExceptions - IllegalArgumentExceptionCopyright © 2010–2017 EvoSuite. All rights reserved.