public class OutputTrace<T extends OutputTraceEntry> extends Object implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Map<Integer,T>> |
trace
One entry per statement and per variable
|
| Constructor and Description |
|---|
OutputTrace() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(int position,
VariableReference var,
T entry)
Insert a new entry into the trace
|
void |
clear()
Reset the trace
|
OutputTrace<T> |
clone() |
boolean |
containsEntry(int position,
VariableReference var)
Get the current entry at the given position
|
boolean |
differs(OutputTrace<?> other)
Binary decision whether the two traces differ in any way
|
int |
getAllAssertions(TestCase test)
Get all possible assertions
|
int |
getAllAssertions(TestCase test,
int statement)
Get all possible assertions
|
int |
getAssertions(TestCase test,
OutputTrace<?> other)
Get all assertions based on trace differences
|
T |
getEntry(int position,
VariableReference var)
Get the current entry at the given position
|
boolean |
isDetectedBy(Assertion assertion)
Check if this trace makes the assertion fail
|
int |
numDiffer(OutputTrace<?> other)
Count the number of differences between two traces
|
String |
toString() |
public void addEntry(int position,
VariableReference var,
T entry)
T - a T object.position - a int.entry - a T object.var - a VariableReference object.public T getEntry(int position, VariableReference var)
position - a int.var - a VariableReference object.public boolean containsEntry(int position,
VariableReference var)
position - a int.var - a VariableReference object.public boolean differs(OutputTrace<?> other)
other - a OutputTrace object.public int numDiffer(OutputTrace<?> other)
other - a OutputTrace object.public int getAssertions(TestCase test, OutputTrace<?> other)
test - a TestCase object.other - a OutputTrace object.public int getAllAssertions(TestCase test)
test - a TestCase object.public int getAllAssertions(TestCase test, int statement)
test - a TestCase object.public boolean isDetectedBy(Assertion assertion)
assertion - a Assertion object.public void clear()
public OutputTrace<T> clone()
Copyright © 2010–2017 EvoSuite. All rights reserved.