| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
TestCoverageGoal.isCovered(TestChromosome test)
Return true if this coverage goal is covered by the given test
|
protected ExecutionResult |
TestCoverageGoal.runTest(TestChromosome test)
Execute a test case
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TestCoverageGoal.isCovered(List<TestChromosome> tests)
Determine if there is an existing test case covering this goal
|
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
ArchiveTestChromosomeFactory.getChromosome() |
| Modifier and Type | Method and Description |
|---|---|
double |
OnlyBranchCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
BranchCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
double |
CBranchTestFitness.getFitness(TestChromosome individual,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
double |
DefUseCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
AllDefsCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
void |
DefUseCoverageTestFitness.setCovered(TestChromosome individual,
ExecutionTrace trace,
Integer objectId)
setCovered
|
| Constructor and Description |
|---|
DefUseFitnessCalculator(DefUseCoverageTestFitness goal,
TestChromosome individual,
ExecutionResult result)
Constructor for DefUseFitnessCalculator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
ExceptionCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
double |
IBranchTestFitness.getFitness(TestChromosome individual,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
double |
InputCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
double |
OutputCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
double |
LineCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
double |
MethodTraceCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
MethodNoExceptionCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
MethodCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MutationTestPool.addTest(Mutation mutation,
TestChromosome test)
Keep a copy of a test that covers a mutant
|
double |
WeakMutationTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
StrongMutationTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
OnlyMutationTestFitness.getFitness(TestChromosome individual,
ExecutionResult result) |
abstract double |
MutationTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
boolean |
StrongMutationTestFitness.isCovered(TestChromosome individual,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
double |
RhoCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
double |
StatementCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Class and Description |
|---|---|
class |
RegressionTestChromosome |
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
RegressionTestChromosome.getTheSameTestForTheOtherClassLoader() |
TestChromosome |
RegressionTestChromosome.getTheTest() |
| Modifier and Type | Method and Description |
|---|---|
List<TestChromosome> |
RegressionTestSuiteChromosome.getTestChromosomes() |
AbstractTestSuiteChromosome<TestChromosome> |
RegressionTestSuiteChromosome.getTestSuite() |
AbstractTestSuiteChromosome<TestChromosome> |
RegressionTestSuiteChromosome.getTestSuiteForTheOtherClassLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionTestSuiteChromosome.addTest(TestChromosome test) |
ExecutionResult |
RegressionTestFitnessFunction.runTest(TestChromosome testChromosome)
Deprecated.
Execute a test case
|
void |
RegressionTestChromosome.setTest(TestChromosome theTest) |
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionTestSuiteChromosome.addTests(Collection<TestChromosome> tests) |
| Constructor and Description |
|---|
RegressionTestSuiteChromosome(ChromosomeFactory<TestChromosome> testChromosomeFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected ChromosomeFactory<TestChromosome> |
RandomTestStrategy.getChromosomeFactory() |
protected ChromosomeFactory<TestChromosome> |
PropertiesTestGAFactory.getChromosomeFactory() |
GeneticAlgorithm<TestChromosome> |
PropertiesTestGAFactory.getSearchAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
static List<BranchCondition> |
ConcolicExecution.getSymbolicPath(TestChromosome test)
Retrieve the path condition for a given test case
|
| Modifier and Type | Method and Description |
|---|---|
int |
MinimizeExceptionsSecondaryObjective.compareChromosomes(TestChromosome chromosome1,
TestChromosome chromosome2)
Compare two chromosomes with each other with respect to this objective.
|
int |
MinimizeExceptionsSecondaryObjective.compareGenerations(TestChromosome parent1,
TestChromosome parent2,
TestChromosome child1,
TestChromosome child2)
Compare two parents to decide whether the children can replace the
parents.
|
double |
TestFitnessFunction.getFitness(TestChromosome individual)
Calculate and set fitness function #TODO the 'set fitness' part should be
done by some abstract super class of all FitnessFunctions
|
abstract double |
TestFitnessFunction.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
void |
ConstantInliner.inline(TestChromosome test)
inline
|
boolean |
TestFitnessFunction.isCovered(TestChromosome tc)
isCovered
|
boolean |
TestFitnessFunction.isCovered(TestChromosome individual,
ExecutionResult result)
isCovered
|
void |
TestCaseMinimizer.minimize(TestChromosome c)
Central minimization function.
|
void |
ValueMinimizer.minimize(TestChromosome test,
TestFitnessFunction objective)
minimize
|
static boolean |
ConstraintVerifier.verifyTest(TestChromosome tc) |
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
RandomLengthTestFactory.getChromosome()
getChromosome
|
TestChromosome |
JUnitTestCarvedChromosomeFactory.getChromosome() |
TestChromosome |
FixedLengthTestChromosomeFactory.getChromosome()
getChromosome
|
TestChromosome |
AllMethodsTestChromosomeFactory.getChromosome()
getChromosome
|
| Constructor and Description |
|---|
JUnitTestCarvedChromosomeFactory(ChromosomeFactory<TestChromosome> defaultFactory)
The carved test cases are used only with a certain probability P.
|
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
DSETestGenerator.generateNewTest(TestChromosome test,
Set<Integer> statementIndexes,
LocalSearchObjective<TestChromosome> objective)
Applies DSE to the passed test using as symbolic variables only those
that are declared in the set of statement indexes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StatementLocalSearch.backup(TestChromosome test) |
boolean |
StringLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
StringAVMLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
abstract boolean |
StatementLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
ReferenceLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective) |
boolean |
ParameterLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
NullReferenceSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective) |
boolean |
IntegerLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
FloatLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
EnumLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
BooleanLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
ArrayLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
DSETestCaseLocalSearch.doSearch(TestChromosome test,
LocalSearchObjective<TestChromosome> objective)
Applies DSE on a test case using the passed local search objective.
|
boolean |
AVMTestCaseLocalSearch.doSearch(TestChromosome individual,
LocalSearchObjective<TestChromosome> objective) |
boolean |
StatementLocalSearch.doSearch(TestChromosome test,
Set<Integer> statements,
LocalSearchObjective<TestChromosome> objective) |
TestChromosome |
DSETestGenerator.generateNewTest(TestChromosome test,
Set<Integer> statementIndexes,
LocalSearchObjective<TestChromosome> objective)
Applies DSE to the passed test using as symbolic variables only those
that are declared in the set of statement indexes.
|
protected void |
StatementLocalSearch.restore(TestChromosome test) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
StringLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
StringAVMLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
abstract boolean |
StatementLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
ReferenceLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective) |
boolean |
ParameterLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
NullReferenceSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective) |
boolean |
IntegerLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
FloatLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
EnumLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
BooleanLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
ArrayLocalSearch.doSearch(TestChromosome test,
int statement,
LocalSearchObjective<TestChromosome> objective)
doSearch
|
boolean |
DSETestCaseLocalSearch.doSearch(TestChromosome test,
LocalSearchObjective<TestChromosome> objective)
Applies DSE on a test case using the passed local search objective.
|
boolean |
AVMTestCaseLocalSearch.doSearch(TestChromosome individual,
LocalSearchObjective<TestChromosome> objective) |
boolean |
StatementLocalSearch.doSearch(TestChromosome test,
Set<Integer> statements,
LocalSearchObjective<TestChromosome> objective) |
TestChromosome |
DSETestGenerator.generateNewTest(TestChromosome test,
Set<Integer> statementIndexes,
LocalSearchObjective<TestChromosome> objective)
Applies DSE to the passed test using as symbolic variables only those
that are declared in the set of statement indexes.
|
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
TestSuiteChromosome.addTest(TestCase test)
Add a test to a test suite
|
| Modifier and Type | Method and Description |
|---|---|
static List<TestChromosome> |
TestSuiteSerialization.loadTests(File target) |
static List<TestChromosome> |
TestSuiteSerialization.loadTests(File folder,
String fileName) |
static List<TestChromosome> |
TestSuiteSerialization.loadTests(String target) |
| Constructor and Description |
|---|
TestSuiteChromosome(ChromosomeFactory<TestChromosome> testChromosomeFactory)
Constructor for TestSuiteChromosome.
|
| Modifier and Type | Field and Description |
|---|---|
protected ChromosomeFactory<TestChromosome> |
TestSuiteChromosomeFactory.testChromosomeFactory
Factory to manipulate and generate method sequences
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestSuiteChromosomeFactory.setTestFactory(ChromosomeFactory<TestChromosome> factory)
setTestFactory
|
| Constructor and Description |
|---|
JUnitTestSuiteChromosomeFactory(ChromosomeFactory<TestChromosome> defaultFactory)
Constructor for JUnitTestSuiteChromosomeFactory.
|
SerializationSuiteChromosomeFactory(ChromosomeFactory<TestChromosome> defaultFactory)
The carved test cases are used only with a certain probability P.
|
TestSuiteChromosomeFactory(ChromosomeFactory<TestChromosome> testFactory)
Constructor for TestSuiteChromosomeFactory.
|
| Modifier and Type | Method and Description |
|---|---|
int |
TestSuiteLocalSearchObjective.hasChanged(TestChromosome testCase)
Overrides the test case at position
testIndex with the
individual. |
boolean |
TestSuiteLocalSearchObjective.hasImproved(TestChromosome testCase)
Replaces the test case at position
testIndex with the passed
TestChromosome. |
boolean |
TestSuiteLocalSearchObjective.hasNotWorsened(TestChromosome testCase)
Returns true if by replacing the test case at position
testIndex with the argument testCase, the
resulting test suite has not worsened the fitness |
Copyright © 2010–2017 EvoSuite. All rights reserved.