| Modifier and Type | Method and Description |
|---|---|
void |
UnitAssertionGenerator.addAssertions(TestCase test)
addAssertions
|
void |
MutationAssertionGenerator.addAssertions(TestCase test)
addAssertions
|
void |
CompleteAssertionGenerator.addAssertions(TestCase test)
addAssertions
|
abstract void |
AssertionGenerator.addAssertions(TestCase test)
addAssertions
|
Assertion |
Assertion.clone(TestCase newTestCase)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
SameAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
PrimitiveFieldAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
PrimitiveAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
NullAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
InspectorAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
EqualsAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
CompareAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
abstract Assertion |
Assertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
Assertion |
ArrayEqualsAssertion.copy(TestCase newTestCase,
int offset)
Return a copy of the assertion, which is valid in newTestCase
|
protected void |
AssertionGenerator.filterFailingAssertions(TestCase test) |
protected void |
MutationAssertionGenerator.filterRedundantNonnullAssertions(TestCase test)
Remove assertNonNull assertions for all cases where we have further
assertions
|
int |
OutputTrace.getAllAssertions(TestCase test)
Get all possible assertions
|
int |
OutputTrace.getAllAssertions(TestCase test,
int statement)
Get all possible assertions
|
int |
OutputTrace.getAssertions(TestCase test,
OutputTrace<?> other)
Get all assertions based on trace differences
|
protected int |
MutationAssertionGenerator.getNumKilledMutants(TestCase test,
Map<Mutation,List<OutputTrace<?>>> mutation_traces,
List<Mutation> executedMutants) |
protected boolean |
MutationAssertionGenerator.isUsedAsCallee(TestCase test,
VariableReference var)
Returns true if the variable var is used as callee later on in the test
|
protected ExecutionResult |
MutationAssertionGenerator.runTest(TestCase test)
Execute a test case on the original unit
|
protected ExecutionResult |
AssertionGenerator.runTest(TestCase test)
Execute a test case on the original unit
|
protected ExecutionResult |
MutationAssertionGenerator.runTest(TestCase test,
Mutation mutant)
Execute a test case on a mutant
|
| Modifier and Type | Method and Description |
|---|---|
void |
AssertionGenerator.filterFailingAssertions(List<TestCase> testCases) |
| Modifier and Type | Method and Description |
|---|---|
TestCase |
ContractViolation.getTestCase()
Getter for test case
|
| Modifier and Type | Method and Description |
|---|---|
static List<TestCase> |
FailingTestSet.getFailingTests() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ContractChecker.currentTest(TestCase test)
Set the current test case, on which we check oracles while it is executed
|
boolean |
Contract.fails(TestCase test)
Run the test against this contract and determine whether it reports a
failure
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
TestsArchive.getCloneAtRandom() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
StrongMutationTestFitness.runTest(TestCase test) |
ExecutionResult |
StrongMutationSuiteFitness.runTest(TestCase test)
Execute a test case
|
ExecutionResult |
MutationTestFitness.runTest(TestCase test) |
ExecutionResult |
MutationSuiteFitness.runTest(TestCase test)
Execute a test case
|
static ExecutionResult |
StrongMutationTestFitness.runTest(TestCase test,
Mutation mutant) |
ExecutionResult |
StrongMutationSuiteFitness.runTest(TestCase test,
Mutation mutant)
runTest
|
static ExecutionResult |
MutationTestFitness.runTest(TestCase test,
Mutation mutant)
runTest
|
ExecutionResult |
MutationSuiteFitness.runTest(TestCase test,
Mutation mutant)
runTest
|
| Modifier and Type | Method and Description |
|---|---|
String |
UnitTestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions)
Return the sequence of method calls for a test
|
String |
JUnit4TestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions)
Return the sequence of method calls for a test
|
String |
JUnit3TestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions)
Return the sequence of method calls for a test
|
String |
UnitTestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions,
TestCodeVisitor visitor)
Return the sequence of method calls for a test
|
String |
JUnit4TestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions,
TestCodeVisitor visitor)
Return the sequence of method calls for a test
|
String |
JUnit3TestAdapter.getTestString(int id,
TestCase test,
Map<Integer,Throwable> exceptions,
TestCodeVisitor visitor)
Return the sequence of method calls for a test
|
ExecutionResult |
JUnitTestSuite.runTest(TestCase test)
runTest
|
| Modifier and Type | Method and Description |
|---|---|
static int |
JUnitAnalyzer.handleTestsThatAreUnstable(List<TestCase> tests)
Compile and run all the test cases, and mark as "unstable" all the ones
that fail during execution (ie, unstable assertions).
|
static void |
JUnitAnalyzer.removeTestsThatDoNotCompile(List<TestCase> tests)
Try to compile each test separately, and remove the ones that cannot be
compiled
|
static boolean |
JUnitAnalyzer.verifyCompilationAndExecution(List<TestCase> tests)
Deprecated.
not used anymore, as check are done in different methods now, and old "assert" was not really valid
|
| Modifier and Type | Method and Description |
|---|---|
Comparator<TestCase> |
CoverageGoalTestNameGenerationStrategy.getComparator() |
| Modifier and Type | Method and Description |
|---|---|
String |
TestNameGenerationStrategy.getName(TestCase test) |
String |
NumberedTestNameGenerationStrategy.getName(TestCase test) |
String |
CoverageGoalTestNameGenerationStrategy.getName(TestCase test) |
| Constructor and Description |
|---|
CoverageGoalTestNameGenerationStrategy(List<TestCase> testCases)
This assumes all goals are already saved in the tests
|
CoverageGoalTestNameGenerationStrategy(List<TestCase> testCases,
List<ExecutionResult> results) |
NumberedTestNameGenerationStrategy(List<TestCase> testCases,
List<ExecutionResult> results) |
| Modifier and Type | Field and Description |
|---|---|
protected List<TestCase> |
TestSuiteWriter.testCases |
| Modifier and Type | Method and Description |
|---|---|
List<TestCase> |
TestSuiteWriter.getTestCases()
Get all test cases
|
| Modifier and Type | Method and Description |
|---|---|
int |
TestSuiteWriter.insertTest(TestCase test)
Add test to suite.
|
int |
TestSuiteWriter.insertTest(TestCase test,
String comment)
insertTest
|
protected ExecutionResult |
TestSuiteWriter.runTest(TestCase test)
runTest
|
| Modifier and Type | Method and Description |
|---|---|
static String |
TestSuiteWriterUtils.getNameOfTest(List<TestCase> tests,
int position) |
void |
TestSuiteWriter.insertAllTests(List<TestCase> tests)
insertTests
|
void |
TestSuiteWriter.insertTests(List<TestCase> tests)
insertTests
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
InputVariable.getTestCase() |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
InputVariable.clone(TestCase newTest)
Create a copy of the current variable for new test
|
VariableReference |
InputVariable.copy(TestCase newTest,
int offset)
Create a copy of the current variable for new test
|
| Modifier and Type | Method and Description |
|---|---|
List<TestCase> |
RegressionTestSuiteChromosome.getTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionAssertionGenerator.addAssertions(TestCase test) |
ExecutionResult |
RegressionAssertionGenerator.runTest(TestCase test)
Execute a test case on a mutant
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
TestGenerationResult.getTestCase(String name)
Map from test method to EvoSuite test case
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestGenerationResultBuilder.setTestCase(String name,
String code,
TestCase testCase,
String comment,
ExecutionResult result) |
| Constructor and Description |
|---|
Failure(Throwable t,
int position,
TestCase test) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<GenericClass,Set<TestCase>> |
ObjectPool.pool
The actual object pool
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
ObjectPool.getRandomSequence(GenericClass clazz)
Randomly choose a sequence for a given Type
|
| Modifier and Type | Method and Description |
|---|---|
Set<TestCase> |
ObjectPool.getSequences(GenericClass clazz)
Retrieve all possible sequences for a given Type
|
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectPool.addSequence(GenericClass clazz,
TestCase sequence)
Insert a new sequence for given Type
|
| Modifier and Type | Method and Description |
|---|---|
GenericAccessibleObject<?> |
TestCluster.getRandomCallFor(GenericClass clazz,
TestCase test,
int position) |
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz,
Set<GenericAccessibleObject<?>> excluded,
TestCase test,
int position,
VariableReference generatorRefToExclude,
int recursionDepth)
Randomly select one generator
|
GenericAccessibleObject<?> |
TestCluster.getRandomTestCall(TestCase test)
Get random method or constructor of unit under test
|
void |
TestCluster.handleRuntimeAccesses(TestCase test) |
void |
EnvironmentTestClusterAugmenter.handleRuntimeAccesses(TestCase test)
If access to certain classes was observed at runtime, this method adds
test calls to the test cluster which may lead to covering more branches.
|
| Modifier and Type | Method and Description |
|---|---|
static TestCase |
ConcolicMutation.negateCondition(List<BranchCondition> pathCondition,
BranchCondition targetCondition,
TestCase test)
Generate new constraint and ask solver for solution
|
| Modifier and Type | Method and Description |
|---|---|
static TestCase |
ConcolicMutation.negateCondition(List<BranchCondition> pathCondition,
BranchCondition targetCondition,
TestCase test)
Generate new constraint and ask solver for solution
|
| Modifier and Type | Method and Description |
|---|---|
Map<Class<?>,List<TestCase>> |
CarvingRunListener.getTestCases() |
List<TestCase> |
CarvingManager.getTestsForClass(Class<?> clazz) |
| Modifier and Type | Class and Description |
|---|---|
class |
CarvedTestCase
Created by jmr on 26/10/2015.
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
EvoTestCaseCodeGenerator.getCode() |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTestCase
A test case is a list of statements
|
class |
StructuredTestCase |
| Modifier and Type | Field and Description |
|---|---|
protected TestCase |
TestCodeVisitor.test |
protected TestCase |
TestChromosome.test
The test case encoded in this chromosome
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
TestCase.clone()
clone
|
TestCase |
TestCaseExpander.expandTestCase(TestCase test) |
TestCase |
TestChromosome.getTestCase()
getTestCase
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestCase.addAssertions(TestCase other)
Copy all the assertions from other test case
|
void |
DefaultTestCase.addAssertions(TestCase other)
Copy all the assertions from other test case
|
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
Type exactType,
int position,
int recursionDepth)
Add constructor at given position if max recursion depth has not been
reached
|
VariableReference |
TestFactory.addField(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add a field to the test case
|
VariableReference |
TestFactory.addFieldAssignment(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addFieldFor(TestCase test,
VariableReference callee,
GenericField field,
int position)
Add reference to a field of variable "callee"
|
VariableReference |
TestFactory.addFunctionalMock(TestCase test,
Type type,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addMethod(TestCase test,
GenericMethod method,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addMethodFor(TestCase test,
VariableReference callee,
GenericMethod method,
int position)
Add a call on the method for the given callee at position
|
void |
TestFactory.appendStatement(TestCase test,
Statement statement)
Append statement s, trying to satisfy parameters
Called from TestChromosome when doing crossover
|
void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position)
Assign a value to an array index
|
protected void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position,
List<VariableReference> objects)
Assign a value to an array index for a given set of objects
|
VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position)
Attempt to generate a non-null object; initialize recursion level to 0
|
protected VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position,
int recursionDepth,
boolean allowNull,
VariableReference generatorRefToExclude,
boolean canUseMocks,
boolean canReuseExistingVariables)
Try to generate an object of a given type
|
protected VariableReference |
TestFactory.attemptObjectGeneration(TestCase test,
int position,
int recursionDepth,
boolean allowNull)
Try to generate an object suitable for Object.class
|
static boolean |
ConstraintVerifier.canDelete(TestCase tc,
int pos)
Can the statement at the given position be deleted?
A case in which it is not possible is for example if it is
using an existing bounded variable
|
void |
TestFactory.changeCall(TestCase test,
Statement statement,
GenericAccessibleObject<?> call)
Replace the statement with a new statement using given call
|
boolean |
TestFactory.changeRandomCall(TestCase test,
Statement statement) |
TestMutationHistoryEntry |
TestMutationHistoryEntry.clone(TestCase newTest) |
static int |
ConstraintHelper.countNumberOfMethodCalls(TestCase test,
Class<?> klass,
String methodName)
This ignores the input parameters
|
static int |
ConstraintHelper.countNumberOfNewInstances(TestCase test,
Class<?> klass) |
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude) |
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude,
boolean allowNull,
boolean canUseFunctionalMocks,
boolean canReuseVariables)
Create a new non-null, non-primitive object and return reference
|
boolean |
TestFactory.deleteStatement(TestCase test,
int position)
Delete the statement at position from the test case and remove all
references to it
|
boolean |
TestFactory.deleteStatementGracefully(TestCase test,
int position) |
static Set<Integer> |
ConstraintVerifier.dependentPositions(TestCase tc,
int pos) |
TestCase |
TestCaseExpander.expandTestCase(TestCase test) |
static int |
ConstraintVerifier.getAValidPositionForInsertion(GenericAccessibleObject<?> obj,
TestCase tc,
int lastValid) |
static List<String[]> |
ConstraintHelper.getExcludedMethods(TestCase tc)
Retrieve all blacklisted methods in the test.
|
static int |
ConstraintHelper.getLastPositionOfBounded(VariableReference vr,
TestCase tc) |
static int |
ConstraintHelper.getLastPositionOfMethodCall(TestCase test,
String className,
String methodName,
int lastPosition) |
static boolean |
ConstraintVerifier.hasAnyOnlyForAssertionMethod(TestCase tc)
During the search, assertions have not been generated yet.
|
void |
ConstantInliner.inline(TestCase test)
inline
|
boolean |
TestFactory.insertRandomCall(TestCase test,
int position)
Insert a random call for the UUT at the given position
|
int |
TestFactory.insertRandomCallOnEnvironment(TestCase test,
int lastValidPosition) |
boolean |
TestFactory.insertRandomCallOnObjectAt(TestCase test,
VariableReference var,
int position) |
int |
TestFactory.insertRandomStatement(TestCase test,
int lastPosition) |
boolean |
TestFitnessFunction.isCovered(TestCase test)
isCovered
|
static boolean |
ConstraintHelper.isNull(VariableReference vr,
TestCase tc) |
boolean |
TestCase.isPrefix(TestCase t)
Check if this test case is a prefix of t
|
boolean |
DefaultTestCase.isPrefix(TestCase t)
Check if this test case is a prefix of t
|
static boolean |
ConstraintVerifier.isValidPositionForInsertion(GenericAccessibleObject<?> obj,
TestCase tc,
int pos) |
static boolean |
TestCaseMinimizer.removeUnusedVariables(TestCase t)
Remove all unreferenced variables
|
boolean |
ConstantInliner.removeUnusedVariables(TestCase t)
Remove all unreferenced variables
|
ExecutionResult |
TestFitnessFunction.runTest(TestCase test) |
List<VariableReference> |
TestFactory.satisfyParameters(TestCase test,
VariableReference callee,
List<Type> parameterTypes,
int position,
int recursionDepth,
boolean allowNull,
boolean excludeCalleeGenerators,
boolean canReuseExistingVariables)
Satisfy a list of parameters by reusing or creating variables
|
void |
TestChromosome.setTestCase(TestCase testCase)
setTestCase
|
static boolean |
ConstraintVerifier.verifyTest(TestCase tc) |
void |
TestCaseExpander.visitArrayStatement(TestCase test,
ArrayStatement statement) |
void |
TestCaseExpander.visitAssignmentStatement(TestCase test,
AssignmentStatement statement) |
void |
TestCaseExpander.visitConstructorStatement(TestCase test,
ConstructorStatement statement) |
void |
TestCaseExpander.visitMethodStatement(TestCase test,
MethodStatement statement) |
void |
ValueMinimizer.visitTestCase(TestCase test)
visitTestCase
|
abstract void |
TestVisitor.visitTestCase(TestCase test)
visitTestCase
|
void |
TestCodeVisitor.visitTestCase(TestCase test)
visitTestCase
|
void |
StructuredTestCodeVisitor.visitTestCase(TestCase test) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TestFitnessFunction.isCovered(List<TestCase> tests)
Determine if there is an existing test case covering this goal
|
| Constructor and Description |
|---|
StructuredTestCase(TestCase test) |
| Modifier and Type | Field and Description |
|---|---|
protected static TestCase |
ExecutionObserver.currentTest
The test case being monitored and executed
|
TestCase |
ExecutionResult.test
Test case that produced this execution result
|
| Modifier and Type | Method and Description |
|---|---|
static TestCase |
ExecutionObserver.getCurrentTest()
Getter method for current test case
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
TestCaseExecutor.execute(TestCase tc)
Execute a test case on a new scope
|
ExecutionResult |
TestCaseExecutor.execute(TestCase tc,
int timeout)
Execute a test case on a new scope
|
static ExecutionResult |
TestCaseExecutor.runTest(TestCase test)
Execute a test case
|
static void |
ExecutionObserver.setCurrentTest(TestCase test)
Setter method for current test case
|
void |
ExecutionResult.setTest(TestCase tc) |
| Constructor and Description |
|---|
ExecutionResult(TestCase t)
Default constructor when executing without mutation
|
ExecutionResult(TestCase t,
Mutation m)
Constructor when executing with mutation
|
TestRunnable(TestCase tc,
Scope scope,
Set<ExecutionObserver> observers)
Constructor for TestRunnable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClassReInitializer.reInitializeClassesAfterTestExecution(TestCase executedTestCase,
ExecutionResult testCaseResult)
This method is invoked after a test execution has ended.
|
| Modifier and Type | Method and Description |
|---|---|
protected TestCase |
RandomLengthTestFactory.getNewTestCase()
Provided so that subtypes of this factory type can modify the returned
TestCase
|
protected TestCase |
AllMethodsTestChromosomeFactory.getNewTestCase()
Provided so that subtypes of this factory type can modify the returned
TestCase
|
| Modifier and Type | Method and Description |
|---|---|
List<TestCase> |
JUnitTestCarvedChromosomeFactory.getCarvedTestCases() |
| Modifier and Type | Method and Description |
|---|---|
TestCase |
BranchCoverageMap.getTestCoveringFalse(int branchId) |
TestCase |
BranchCoverageMap.getTestCoveringTrue(int branchId) |
| Modifier and Type | Method and Description |
|---|---|
static void |
TestCaseLocalSearch.randomizePrimitives(TestCase test)
This method allows to reset all primitive values before trying again a
local search on the same test case.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LegacyInsertion.insertRandomCallOnObject(TestCase test,
int position)
Insert a random call at given position for an object defined before this
position
|
int |
RandomInsertion.insertStatement(TestCase test,
int lastPosition) |
int |
LegacyInsertion.insertStatement(TestCase test,
int lastPosition) |
int |
InsertionStrategy.insertStatement(TestCase test,
int lastPosition) |
| Modifier and Type | Field and Description |
|---|---|
protected TestCase |
AbstractStatement.tc
Reference of the test case this statement belongs to.
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
Statement.getTestCase()
Retrieve the test case this statement is part of
|
TestCase |
AbstractStatement.getTestCase() |
| Modifier and Type | Method and Description |
|---|---|
Statement |
Statement.clone(TestCase newTestCase)
clone
|
Statement |
AbstractStatement.clone(TestCase newTestCase)
clone
|
Statement |
Statement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
PrimitiveStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
PrimitiveExpression.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
NullStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
MethodStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
FunctionalMockStatement.copy(TestCase newTestCase,
int offset) |
Statement |
FieldStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
ConstructorStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
AssignmentStatement.copy(TestCase newTestCase,
int offset)
copy
|
Statement |
ArrayStatement.copy(TestCase newTestCase,
int offset)
copy
|
Set<Assertion> |
Statement.copyAssertions(TestCase newTestCase,
int offset)
copyAssertions
|
Set<Assertion> |
AbstractStatement.copyAssertions(TestCase newTestCase,
int offset)
copyAssertions
|
static PrimitiveStatement<?> |
PrimitiveStatement.getPrimitiveStatement(TestCase tc,
Class<?> clazz) |
static PrimitiveStatement<?> |
PrimitiveStatement.getPrimitiveStatement(TestCase tc,
GenericClass genericClass)
Generate a primitive statement for given type initialized with default
value (0)
|
static PrimitiveStatement<?> |
PrimitiveStatement.getRandomStatement(TestCase tc,
GenericClass clazz,
int position)
Create random primitive statement
|
boolean |
Statement.mutate(TestCase test,
TestFactory factory)
mutate
|
boolean |
PrimitiveStatement.mutate(TestCase test,
TestFactory factory)
mutate
|
boolean |
MethodStatement.mutate(TestCase test,
TestFactory factory)
Go through parameters of method call and apply local search
|
boolean |
ImmutableStringPrimitiveStatement.mutate(TestCase test,
TestFactory factory) |
boolean |
FieldStatement.mutate(TestCase test,
TestFactory factory)
Try to replace source of field with all possible choices
|
boolean |
ConstructorStatement.mutate(TestCase test,
TestFactory factory)
Go through parameters of constructor call and apply local search
|
boolean |
AssignmentStatement.mutate(TestCase test,
TestFactory factory)
mutate
|
boolean |
ArrayStatement.mutate(TestCase test,
TestFactory factory)
mutate
|
boolean |
AbstractStatement.mutate(TestCase test,
TestFactory factory)
mutate
|
protected boolean |
EntityWithParametersStatement.mutateParameter(TestCase test,
int numParameter) |
| Constructor and Description |
|---|
AbstractStatement(TestCase tc,
Type type)
Constructor for AbstractStatement.
|
AbstractStatement(TestCase tc,
VariableReference retval)
Constructor for AbstractStatement.
|
ArrayStatement(TestCase tc,
ArrayReference arrayReference)
Constructor for ArrayStatement.
|
ArrayStatement(TestCase tc,
ArrayReference arrayReference,
int[] length)
Constructor for ArrayStatement.
|
ArrayStatement(TestCase tc,
Type type)
Constructor for ArrayStatement.
|
ArrayStatement(TestCase tc,
Type type,
int length)
Constructor for ArrayStatement.
|
ArrayStatement(TestCase tc,
Type type,
int[] length)
Constructor for ArrayStatement.
|
AssignmentStatement(TestCase tc,
VariableReference var,
VariableReference value)
Constructor for AssignmentStatement.
|
ClassPrimitiveStatement(TestCase tc) |
ClassPrimitiveStatement(TestCase tc,
Class<?> value) |
ClassPrimitiveStatement(TestCase tc,
GenericClass type,
Set<Class<?>> assignableClasses) |
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
List<VariableReference> parameters)
Constructor for ConstructorStatement.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters,
boolean check)
Constructor for ConstructorStatement.
|
EntityWithParametersStatement(TestCase tc,
Type type)
Constructor needed for Functional Mocks where the number of input parameters
might vary during the search, ie not constant, and starts with 0
|
EntityWithParametersStatement(TestCase tc,
Type type,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
EntityWithParametersStatement(TestCase tc,
VariableReference retval)
Constructor needed for Functional Mocks where the number of input parameters
might vary during the search, ie not constant, and starts with 0
|
EntityWithParametersStatement(TestCase tc,
VariableReference retval,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
EnumPrimitiveStatement(TestCase tc,
Class<T> clazz)
Constructor for EnumPrimitiveStatement.
|
EnumPrimitiveStatement(TestCase tc,
T value)
Constructor for EnumPrimitiveStatement.
|
FieldStatement(TestCase tc,
GenericField field,
VariableReference source)
Constructor for FieldStatement.
|
FieldStatement(TestCase tc,
GenericField field,
VariableReference source,
VariableReference ret_var)
This constructor allows you to use an already existing VariableReference
as retvar.
|
FunctionalMockStatement(TestCase tc,
Type retvalType,
Class<?> targetClass) |
FunctionalMockStatement(TestCase tc,
VariableReference retval,
Class<?> targetClass) |
ImmutableStringPrimitiveStatement(TestCase tc,
String value) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters)
Constructor for MethodStatement.
|
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters,
VariableReference retVal) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
NullStatement(TestCase tc,
Type type)
Constructor for NullStatement.
|
PrimitiveExpression(TestCase testCase,
VariableReference reference,
VariableReference leftOperand,
PrimitiveExpression.Operator operator,
VariableReference rightOperand)
Constructor for PrimitiveExpression.
|
PrimitiveStatement(TestCase tc,
GenericClass clazz,
T value) |
PrimitiveStatement(TestCase tc,
Type type,
T value)
Constructor
|
PrimitiveStatement(TestCase tc,
VariableReference varRef,
T value)
Constructor for PrimitiveStatement.
|
StringPrimitiveStatement(TestCase tc)
Constructor for StringPrimitiveStatement.
|
StringPrimitiveStatement(TestCase tc,
String value)
Constructor for StringPrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveStatement<?> |
EnvironmentStatements.getStatement(Class<?> clazz,
TestCase tc) |
| Constructor and Description |
|---|
EnvironmentDataStatement(TestCase tc,
Type clazz,
T value) |
FileNamePrimitiveStatement(TestCase tc,
EvoSuiteFile value)
Constructor for FileNamePrimitiveStatement.
|
LocalAddressPrimitiveStatement(TestCase tc) |
LocalAddressPrimitiveStatement(TestCase tc,
EvoSuiteLocalAddress value) |
NamePrimitiveStatement(TestCase tc) |
NamePrimitiveStatement(TestCase tc,
EvoName value) |
RemoteAddressPrimitiveStatement(TestCase tc) |
RemoteAddressPrimitiveStatement(TestCase tc,
EvoSuiteRemoteAddress value) |
UrlPrimitiveStatement(TestCase tc) |
UrlPrimitiveStatement(TestCase tc,
EvoSuiteURL value) |
| Constructor and Description |
|---|
BooleanPrimitiveStatement(TestCase tc)
Constructor for BooleanPrimitiveStatement.
|
BooleanPrimitiveStatement(TestCase tc,
Boolean value)
Constructor for BooleanPrimitiveStatement.
|
BytePrimitiveStatement(TestCase tc)
Constructor for BytePrimitiveStatement.
|
BytePrimitiveStatement(TestCase tc,
Byte value)
Constructor for BytePrimitiveStatement.
|
BytePrimitiveStatement(TestCase tc,
Type type)
Constructor for BytePrimitiveStatement.
|
CharPrimitiveStatement(TestCase tc)
Constructor for CharPrimitiveStatement.
|
CharPrimitiveStatement(TestCase tc,
Character value)
Constructor for CharPrimitiveStatement.
|
DoublePrimitiveStatement(TestCase tc)
Constructor for DoublePrimitiveStatement.
|
DoublePrimitiveStatement(TestCase tc,
Double value)
Constructor for DoublePrimitiveStatement.
|
FloatPrimitiveStatement(TestCase tc)
Constructor for FloatPrimitiveStatement.
|
FloatPrimitiveStatement(TestCase tc,
Float value)
Constructor for FloatPrimitiveStatement.
|
IntPrimitiveStatement(TestCase tc)
Constructor for IntPrimitiveStatement.
|
IntPrimitiveStatement(TestCase tc,
Integer value)
Constructor for IntPrimitiveStatement.
|
LongPrimitiveStatement(TestCase tc)
Constructor for LongPrimitiveStatement.
|
LongPrimitiveStatement(TestCase tc,
Long value)
Constructor for LongPrimitiveStatement.
|
NumericalPrimitiveStatement(TestCase tc,
Type type,
T value)
Constructor for NumericalPrimitiveStatement.
|
ShortPrimitiveStatement(TestCase tc)
Constructor for ShortPrimitiveStatement.
|
ShortPrimitiveStatement(TestCase tc,
Short value)
Constructor for ShortPrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
PrivateMethodStatement.copy(TestCase newTestCase,
int offset) |
Statement |
PrivateFieldStatement.copy(TestCase newTestCase,
int offset) |
boolean |
PrivateMethodStatement.mutate(TestCase test,
TestFactory factory) |
boolean |
PrivateFieldStatement.mutate(TestCase test,
TestFactory factory) |
| Constructor and Description |
|---|
PrivateFieldStatement(TestCase tc,
Class<?> klass,
String fieldName,
VariableReference callee,
VariableReference param) |
PrivateMethodStatement(TestCase tc,
Class<?> klass,
Method method,
VariableReference callee,
List<VariableReference> params,
boolean isStatic) |
| Modifier and Type | Field and Description |
|---|---|
protected TestCase |
VariableReferenceImpl.testCase
The testCase in which this VariableReference is valid
|
| Modifier and Type | Method and Description |
|---|---|
TestCase |
VariableReferenceImpl.getTestCase() |
TestCase |
VariableReference.getTestCase()
getTestCase
|
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
VariableReferenceImpl.clone(TestCase newTestCase)
Create a copy of the current variable for new test
|
VariableReference |
VariableReference.clone(TestCase newTest)
Create a copy of the current variable for new test
|
VariableReference |
ConstantValue.clone(TestCase newTestCase) |
VariableReference |
ArrayIndex.clone(TestCase newTestCase) |
VariableReference |
VariableReferenceImpl.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
VariableReference.copy(TestCase newTest,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
FieldReference.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ConstantValue.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ArrayReference.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ArrayIndex.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
| Constructor and Description |
|---|
ArrayIndex(TestCase testCase,
ArrayReference array,
int index)
Constructor
|
ArrayIndex(TestCase testCase,
ArrayReference array,
List<Integer> indices)
Constructor for ArrayIndex.
|
ArrayReference(TestCase tc,
Class<?> clazz)
Constructor for ArrayReference.
|
ArrayReference(TestCase tc,
GenericClass clazz,
int array_length)
Constructor for ArrayReference.
|
ArrayReference(TestCase tc,
GenericClass clazz,
int[] lengths)
Constructor for ArrayReference.
|
ConstantValue(TestCase testCase,
GenericClass type)
Constructor for ConstantValue.
|
ConstantValue(TestCase testCase,
GenericClass type,
Object value) |
ConstantValue(TestCase testCase,
Type type)
Constructor for ConstantValue.
|
FieldReference(TestCase testCase,
GenericField field)
Constructor for FieldReference.
|
FieldReference(TestCase testCase,
GenericField field,
Type type)
We need this constructor to work around a bug in Java Generics which
causes a java.lang.reflect.GenericSignatureFormatError when accessing
getType
|
FieldReference(TestCase testCase,
GenericField field,
Type fieldType,
VariableReference source)
We need this constructor to work around a bug in Java Generics which
causes a java.lang.reflect.GenericSignatureFormatError when accessing
getType
|
FieldReference(TestCase testCase,
GenericField field,
VariableReference source)
Constructor for FieldReference.
|
NullReference(TestCase testCase,
Type type)
Constructor for NullReference.
|
VariableReferenceImpl(TestCase testCase,
GenericClass type)
Constructor
|
VariableReferenceImpl(TestCase testCase,
Type type)
Constructor for VariableReferenceImpl.
|
| Modifier and Type | Method and Description |
|---|---|
List<TestCase> |
TestSuiteChromosome.getTests()
getTests
|
| Modifier and Type | Method and Description |
|---|---|
TestChromosome |
TestSuiteChromosome.addTest(TestCase test)
Add a test to a test suite
|
void |
TestSuiteChromosome.deleteTest(TestCase testCase)
For manual algorithm
|
ExecutionResult |
TestSuiteFitnessFunction.runTest(TestCase test)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
DiversityObserver.getNeedlemanWunschScore(TestCase test1,
TestCase test2)
Sequence alignment based distance
|
| Modifier and Type | Method and Description |
|---|---|
void |
GenericTypeInference.inferTypes(TestCase test) |
void |
GenericTypeInference.visitTestCase(TestCase test) |
Copyright © 2010–2017 EvoSuite. All rights reserved.