public class ConstantInliner extends ExecutionObserver
currentTest, WRAPPER_TYPES| Constructor and Description |
|---|
ConstantInliner() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterStatement(Statement statement,
Scope scope,
Throwable exception)
After execution of a statement, the result is passed to the observer
|
void |
beforeStatement(Statement statement,
Scope scope)
Called immediately before a statement is executed
|
void |
clear()
Need a way to clear previously produced results
|
void |
inline(TestCase test)
inline
|
void |
inline(TestChromosome test)
inline
|
void |
inline(TestSuiteChromosome suite)
inline
|
void |
output(int position,
String output)
This is called with the console output of each statement
|
boolean |
removeUnusedVariables(TestCase t)
Remove all unreferenced variables
|
void |
testExecutionFinished(ExecutionResult r,
Scope s)
Allow observers to update the execution result at the end the execution of a test.
|
getCurrentTest, getDependentVariables, isWrapperType, setCurrentTestpublic void inline(TestChromosome test)
inline
test - a TestChromosome object.public void inline(TestSuiteChromosome suite)
inline
suite - a TestSuiteChromosome object.public boolean removeUnusedVariables(TestCase t)
t - The test casepublic void output(int position,
String output)
output in class ExecutionObserverposition - a int.output - a String object.public void afterStatement(Statement statement, Scope scope, Throwable exception)
afterStatement in class ExecutionObserverstatement - a Statement object.scope - a Scope object.exception - a Throwable object.public void beforeStatement(Statement statement, Scope scope)
ExecutionObserverbeforeStatement in class ExecutionObserverpublic void clear()
clear in class ExecutionObserverpublic void testExecutionFinished(ExecutionResult r, Scope s)
ExecutionObservertestExecutionFinished in class ExecutionObserverCopyright © 2010–2017 EvoSuite. All rights reserved.