| Modifier and Type | Method and Description |
|---|---|
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 |
SameTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
PrimitiveTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
PrimitiveFieldTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
NullTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
InspectorTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
ComparisonTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
ArrayTraceObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
void |
SingleContractChecker.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
ContractChecker.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionResult |
TestCoverageGoal.runTest(TestChromosome test)
Execute a test case
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TestCoverageGoal.hasTimeout(ExecutionResult result)
hasTimeout
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestsArchive.putTest(FitnessFunction<?> ff,
TestFitnessFunction goal,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
ControlFlowDistance |
BranchCoverageGoal.getDistance(ExecutionResult result)
getDistance
|
static ControlFlowDistance |
ControlFlowDistanceCalculator.getDistance(ExecutionResult result,
Branch branch,
boolean value,
String className,
String methodName)
Calculates the ControlFlowDistance indicating how far away the given
ExecutionResult was from executing the given Branch in a certain way,
depending on the given value.
|
double |
OnlyBranchCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
BranchCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
BranchCoverageTestFitness.getUnfitness(ExecutableChromosome individual,
ExecutionResult result)
getUnfitness
|
protected void |
BranchCoverageSuiteFitness.handleBranchlessMethods(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<String,Integer> callCount) |
protected void |
BranchCoverageSuiteFitness.handleFalseDistances(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<Integer,Double> falseDistance) |
protected void |
BranchCoverageSuiteFitness.handlePredicateCount(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<Integer,Integer> predicateCount) |
protected void |
BranchCoverageSuiteFitness.handleTrueDistances(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<Integer,Double> trueDistance) |
| Modifier and Type | Method and Description |
|---|---|
double |
CBranchTestFitness.getFitness(TestChromosome individual,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
static Set<DefUseCoverageTestFitness> |
DefUseExecutionTraceAnalyzer.getCoveredGoals(ExecutionResult result)
getCoveredGoals
|
double |
DefUseCoverageTestFitness.getFitness(ExecutionResult result)
Used by DefUseCoverageSuiteFitness
Simply call getFitness(TestChromosome,ExecutionResult) with a dummy
TestChromosome The chromosome is used only for updateIndividual()
anyways.
|
double |
DefUseCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
double |
AllDefsCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DefUseCoverageFactory.detectAliasingGoals(List<ExecutionResult> results) |
static Set<DefUseCoverageTestFitness> |
DefUseExecutionTraceAnalyzer.getCoveredGoals(List<ExecutionResult> results)
getCoveredGoals
|
| Constructor and Description |
|---|
DefUseFitnessCalculator(DefUseCoverageTestFitness goal,
TestChromosome individual,
ExecutionResult result)
Constructor for DefUseFitnessCalculator.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
ExceptionCoverageHelper.getExceptionClass(ExecutionResult result,
int exceptionPosition) |
double |
ExceptionCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
static String |
ExceptionCoverageHelper.getMethodIdentifier(ExecutionResult result,
int exceptionPosition) |
static ExceptionCoverageTestFitness.ExceptionType |
ExceptionCoverageHelper.getType(ExecutionResult result,
int exceptionPosition) |
protected void |
TryCatchCoverageSuiteFitness.handleBranchlessMethods(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<String,Integer> callCount) |
protected void |
TryCatchCoverageSuiteFitness.handleFalseDistances(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
ExecutionResult result,
Map<Integer,Double> falseDistance) |
static boolean |
ExceptionCoverageHelper.isDeclared(ExecutionResult result,
int exceptionPosition) |
static boolean |
ExceptionCoverageHelper.isExplicit(ExecutionResult result,
int exceptionPosition) |
static boolean |
ExceptionCoverageHelper.isSutException(ExecutionResult result,
int exceptionPosition) |
static boolean |
ExceptionCoverageHelper.shouldSkip(ExecutionResult result,
int exceptionPosition) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ExceptionCoverageSuiteFitness.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.
|
| 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
|
void |
InputObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
double |
InputCoverageSuiteFitness.computeDistance(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
HashSet<TestFitnessFunction> setOfCoveredGoals) |
| Modifier and Type | Method and Description |
|---|---|
double |
OutputCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
void |
OutputObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
double |
OutputCoverageSuiteFitness.computeDistance(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
HashSet<TestFitnessFunction> setOfCoveredGoals) |
| Modifier and Type | Method and Description |
|---|---|
double |
LineCoverageTestFitness.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
boolean |
LineCoverageTestFitness.isCovered(ExecutionResult result) |
| 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
|
protected boolean |
MethodCoverageSuiteFitness.isValidPosition(ExecutionResult result,
Integer position) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MethodTraceCoverageSuiteFitness.analyzeTraces(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods)
Iterate over all execution results and summarize statistics
|
protected boolean |
MethodNoExceptionCoverageSuiteFitness.analyzeTraces(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods)
Iterate over all execution results and summarize statistics
|
protected boolean |
MethodCoverageSuiteFitness.analyzeTraces(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods)
Iterate over all execution results and summarize statistics
|
protected void |
MethodTraceCoverageSuiteFitness.handleConstructorExceptions(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods)
If there is an exception in a superconstructor, then the corresponding
constructor might not be included in the execution trace
|
protected void |
MethodNoExceptionCoverageSuiteFitness.handleConstructorExceptions(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods) |
protected void |
MethodCoverageSuiteFitness.handleConstructorExceptions(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite,
List<ExecutionResult> results,
Set<String> calledMethods)
If there is an exception in a super-constructor, then the corresponding
constructor might not be included in the execution trace
|
| 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 |
|---|---|
protected double |
MutationTestFitness.getExecutionDistance(ExecutionResult result)
getExecutionDistance
|
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 | Method and Description |
|---|---|
ExecutionResult |
JUnitTestSuite.runTest(TestCase test)
runTest
|
| Constructor and Description |
|---|
CoverageGoalTestNameGenerationStrategy(List<TestCase> testCases,
List<ExecutionResult> results) |
NumberedTestNameGenerationStrategy(List<TestCase> testCases,
List<ExecutionResult> results) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionResult |
TestSuiteWriter.runTest(TestCase test)
runTest
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
TestSuiteWriter.testToString(int number,
int id,
ExecutionResult result)
Convert one test case to a Java method
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TestSuiteWriterUtils.doesUseMocks(List<ExecutionResult> results) |
String |
Scaffolding.getBeforeAndAfterMethods(String name,
boolean wasSecurityException,
List<ExecutionResult> results)
Get the code of methods for @BeforeClass, @Before, @AfterClass and
|
protected static String |
Scaffolding.getHeader(String name,
List<ExecutionResult> results,
boolean wasSecurityException) |
protected String |
TestSuiteWriter.getHeader(String test_name,
String scaffolding_name,
List<ExecutionResult> results)
JUnit file header
|
protected String |
TestSuiteWriter.getImports(List<ExecutionResult> results)
Determine packages that need to be imported in the JUnit file
|
static String |
Scaffolding.getScaffoldingFileContent(String testName,
List<ExecutionResult> results,
boolean wasSecurityException)
Return full JUnit code for scaffolding file for the give test
|
static List<String> |
Scaffolding.getScaffoldingImports(boolean wasSecurityException,
List<ExecutionResult> results)
Return all classes for which we need an import statement
|
static boolean |
TestSuiteWriterUtils.hasAnySecurityException(List<ExecutionResult> results) |
static Set<String> |
TestSuiteWriterUtils.mergeProperties(List<ExecutionResult> results) |
static boolean |
TestSuiteWriterUtils.shouldResetProperties(List<ExecutionResult> results) |
List<File> |
TestSuiteWriter.writeTestSuite(String name,
String directory,
List<ExecutionResult> cachedResults)
Create JUnit test suite for class
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
RegressionTestChromosome.executeForFitnessFunction(TestSuiteFitnessFunction testSuiteFitnessFunction) |
ExecutionResult |
RegressionTestChromosome.getLastExecutionResult() |
ExecutionResult |
RegressionTestChromosome.getLastRegressionExecutionResult() |
ExecutionResult |
RegressionAssertionGenerator.runTest(TestCase test)
Execute a test case on a mutant
|
ExecutionResult |
RegressionTestFitnessFunction.runTest(TestChromosome testChromosome)
Deprecated.
Execute a test case
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegressionTestChromosome.setLastExecutionResult(ExecutionResult lastExecutionResult) |
void |
RegressionTestChromosome.setLastRegressionExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field
lastRegressionExecutionResult. |
void |
RegressionExecutionObserver.testExecutionFinished(ExecutionResult r,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
TestGenerationResultBuilder.setTestCase(String name,
String code,
TestCase testCase,
String comment,
ExecutionResult result) |
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolicObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
void |
TestCarvingExecutionObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionResult |
ExecutableChromosome.lastExecutionResult |
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
TestChromosome.executeForFitnessFunction(TestSuiteFitnessFunction testSuiteFitnessFunction)
executeForFitnessFunction
|
abstract ExecutionResult |
ExecutableChromosome.executeForFitnessFunction(TestSuiteFitnessFunction testSuiteFitnessFunction)
executeForFitnessFunction
|
ExecutionResult |
ExecutableChromosome.getLastExecutionResult()
Getter for the field
lastExecutionResult. |
ExecutionResult |
TestFitnessFunction.runTest(TestCase test) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
TestFitnessFunction.getFitness(TestChromosome individual,
ExecutionResult result)
getFitness
|
boolean |
TestFitnessFunction.isCovered(ExecutionResult result)
Helper function if this is used without a chromosome
|
boolean |
TestFitnessFunction.isCovered(TestChromosome individual,
ExecutionResult result)
isCovered
|
void |
TestChromosome.setLastExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field
lastExecutionResult. |
void |
ExecutableChromosome.setLastExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field
lastExecutionResult. |
void |
ConstantInliner.testExecutionFinished(ExecutionResult r,
Scope s) |
void |
ConcreteValueObserver.testExecutionFinished(ExecutionResult r,
Scope s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TestFitnessFunction.isCoveredByResults(List<ExecutionResult> tests)
Determine if there is an existing test case covering this goal
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
TestRunnable.call() |
ExecutionResult |
ExecutionResult.clone() |
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
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TestRunnable.informObservers_finished(ExecutionResult result) |
abstract void |
ExecutionObserver.testExecutionFinished(ExecutionResult r,
Scope s)
Allow observers to update the execution result at the end the execution of a test.
|
| 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 |
|---|---|
ExecutionResult |
TestSuiteFitnessFunction.runTest(TestCase test)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<ExecutionResult> |
AbstractTestSuiteChromosome.getLastExecutionResults() |
protected List<ExecutionResult> |
TestSuiteFitnessFunction.runTestSuite(AbstractTestSuiteChromosome<? extends ExecutableChromosome> suite)
runTestSuite
|
Copyright © 2010–2017 EvoSuite. All rights reserved.