| Modifier and Type | Method and Description |
|---|---|
static List<TestFitnessFactory<? extends TestFitnessFunction>> |
TestSuiteGenerator.getFitnessFactories()
getFitnessFactories
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
TestFitnessFactory<T extends TestFitnessFunction>
A TestFitnessFactory produces a List of goals (of type TestFitnessFunction).
|
| Modifier and Type | Method and Description |
|---|---|
static TestFitnessFactory<? extends TestFitnessFunction> |
FitnessFunctions.getFitnessFactory(Properties.Criterion crit)
getFitnessFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestsArchive.addGoalToCover(FitnessFunction<?> ff,
TestFitnessFunction goal) |
void |
TestsArchive.putTest(FitnessFunction<?> ff,
TestFitnessFunction goal,
ExecutionResult result) |
| Modifier and Type | Class and Description |
|---|---|
class |
BranchCoverageTestFitness
Fitness function for a single test on a single branch
|
class |
OnlyBranchCoverageTestFitness
Fitness function for a single test on a single branch
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,TestFitnessFunction> |
BranchCoverageSuiteFitness.branchCoverageFalseMap |
protected Map<Integer,TestFitnessFunction> |
BranchCoverageSuiteFitness.branchCoverageTrueMap |
| Modifier and Type | Method and Description |
|---|---|
int |
OnlyBranchCoverageTestFitness.compareTo(TestFitnessFunction other) |
int |
BranchCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
CBranchTestFitness |
| Modifier and Type | Method and Description |
|---|---|
int |
CBranchTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
AllDefsCoverageTestFitness
Evaluate fitness of a single test case with respect to one Definition-Use
pair
For more information look at the comment from method getDistance()
|
class |
DefUseCoverageTestFitness
Evaluate fitness of a single test case with respect to one Definition-Use
pair
For more information look at the comment from method getDistance()
|
| Modifier and Type | Method and Description |
|---|---|
TestFitnessFunction |
DefUseCoverageTestFitness.getGoalDefinitionFitness()
Getter for the field
goalDefinitionFitness. |
TestFitnessFunction |
DefUseCoverageTestFitness.getGoalUseFitness()
Getter for the field
goalUseFitness. |
| Modifier and Type | Method and Description |
|---|---|
int |
DefUseCoverageTestFitness.compareTo(TestFitnessFunction other) |
int |
AllDefsCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
ExceptionCoverageTestFitness
Fitness function for a single test on a single exception
|
class |
TryCatchCoverageTestFitness
Created by gordon on 03/04/2016.
|
| Modifier and Type | Method and Description |
|---|---|
List<TestFitnessFunction> |
ExceptionCoverageFactory.getCoverageGoals()
Generate a list of goals to cover
|
| Modifier and Type | Method and Description |
|---|---|
int |
ExceptionCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
IBranchTestFitness
IBranch test fitness function.
|
| Modifier and Type | Method and Description |
|---|---|
int |
IBranchTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
InputCoverageTestFitness |
| Modifier and Type | Method and Description |
|---|---|
int |
InputCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Method and Description |
|---|---|
double |
InputCoverageSuiteFitness.computeDistance(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
HashSet<TestFitnessFunction> setOfCoveredGoals) |
| Modifier and Type | Class and Description |
|---|---|
class |
OutputCoverageTestFitness |
| Modifier and Type | Method and Description |
|---|---|
int |
OutputCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Method and Description |
|---|---|
double |
OutputCoverageSuiteFitness.computeDistance(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
HashSet<TestFitnessFunction> setOfCoveredGoals) |
| Modifier and Type | Class and Description |
|---|---|
class |
LineCoverageTestFitness
Fitness function for a single test on a single branch
|
| Modifier and Type | Method and Description |
|---|---|
int |
LineCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
MethodCoverageTestFitness
Fitness function for a single test on a single method (no exception)
|
class |
MethodNoExceptionCoverageTestFitness
Fitness function for a single test on a single method (no exception)
|
class |
MethodTraceCoverageTestFitness
Fitness function for a single test on a single method.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,TestFitnessFunction> |
MethodCoverageSuiteFitness.methodCoverageMap |
| Modifier and Type | Method and Description |
|---|---|
int |
MethodTraceCoverageTestFitness.compareTo(TestFitnessFunction other) |
int |
MethodNoExceptionCoverageTestFitness.compareTo(TestFitnessFunction other) |
int |
MethodCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
MutationTestFitness
Abstract MutationTestFitness class.
|
class |
OnlyMutationTestFitness |
class |
StrongMutationTestFitness
StrongMutationTestFitness class.
|
class |
WeakMutationTestFitness
WeakMutationTestFitness class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MutationTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
RhoCoverageTestFitness |
| Modifier and Type | Method and Description |
|---|---|
int |
RhoCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Class and Description |
|---|---|
class |
StatementCoverageTestFitness |
| Modifier and Type | Method and Description |
|---|---|
int |
StatementCoverageTestFitness.compareTo(TestFitnessFunction other) |
| Modifier and Type | Method and Description |
|---|---|
static Set<TestFitnessFunction> |
CoverageAnalysis.getCoveredGoals(Class<?> testClass,
List<TestFitnessFunction> allGoals)
Return the number of covered goals
|
| Modifier and Type | Method and Description |
|---|---|
static Set<TestFitnessFunction> |
CoverageAnalysis.getCoveredGoals(Class<?> testClass,
List<TestFitnessFunction> allGoals)
Return the number of covered goals
|
| Modifier and Type | Method and Description |
|---|---|
int |
GoalComparator.compare(TestFitnessFunction o1,
TestFitnessFunction o2) |
| Modifier and Type | Method and Description |
|---|---|
static List<TestFitnessFactory<? extends TestFitnessFunction>> |
TestGenerationStrategy.getFitnessFactories()
Convert criterion names to factories for test case fitness functions
|
| Modifier and Type | Method and Description |
|---|---|
Set<TestFitnessFunction> |
TestCase.getCoveredGoals()
Retrieve all coverage goals covered by this test
|
Set<TestFitnessFunction> |
DefaultTestCase.getCoveredGoals()
Retrieve all coverage goals covered by this test
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestCase.addCoveredGoal(TestFitnessFunction goal)
Keep track of an additional covered goal
|
void |
DefaultTestCase.addCoveredGoal(TestFitnessFunction goal)
Keep track of an additional covered goal
|
void |
StructuredTestCase.addPrimaryGoal(TestFitnessFunction goal) |
protected int |
TestFitnessFunction.compareClassName(TestFitnessFunction other) |
abstract int |
TestFitnessFunction.compareTo(TestFitnessFunction other)
Used to preorder goals by difficulty
|
boolean |
TestCase.isGoalCovered(TestFitnessFunction goal)
Check if the current test case does cover the given goal.
|
boolean |
DefaultTestCase.isGoalCovered(TestFitnessFunction goal) |
void |
ValueMinimizer.minimize(TestChromosome test,
TestFitnessFunction objective)
minimize
|
| Constructor and Description |
|---|
TestCaseMinimizer(TestFitnessFunction fitnessFunction)
Constructor
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFitnessFactory<T extends TestFitnessFunction>
Historical concrete TestFitnessFactories only implement the getGoals() method
of TestFitnessFactory.
|
| Modifier and Type | Method and Description |
|---|---|
List<TestFitnessFunction> |
TestSuiteFitnessFunc_to_TestFitnessFactory_Adapter.getCoverageGoals()
Generate a list of goals to cover
|
Set<TestFitnessFunction> |
TestSuiteChromosome.getCoveredGoals()
getCoveredGoals
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestSuiteChromosome.removeCoveredGoal(TestFitnessFunction f) |
| Constructor and Description |
|---|
TestSuiteMinimizer(List<TestFitnessFactory<? extends TestFitnessFunction>> factories) |
Copyright © 2010–2017 EvoSuite. All rights reserved.