public class VarTupleSet extends Object
Constructor and Description |
---|
VarTupleSet(List<Tuple> tuples)
Creates a new VarTupleSet object.
|
Modifier and Type | Method and Description |
---|---|
Tuple |
getNextUnused()
Returns the next unused tuple from this set.
|
Iterator<Tuple> |
getUnused()
Returns input tuples not yet used in a test case.
|
Iterator<Tuple> |
getUnused(VarDef var)
Returns input tuples not yet used in a test case that bind the given variable.
|
double |
getUnusedScore(VarBindingDef binding)
Returns a measure of the "unused-ness" of the given binding.
|
Iterator<Tuple> |
getUsed()
Returns input tuples already used in a test case.
|
Iterator<Tuple> |
getUsed(VarDef var)
Returns input tuples already used in a test case that bind the given variable,
excluding once-only tuples.
|
Iterator<Tuple> |
getUsed(VarDef var,
boolean onceOnly)
Returns input tuples already used in a test case that bind the given variable, considering
only tuples that are (not) once-only
|
Iterator<Tuple> |
getUsedOnce(VarDef var)
Returns once-only input tuples already used in a test case that bind the given variable.
|
double |
getUsedOnceScore(VarBindingDef binding)
Returns a measure of the "used-ness" of the given binding among once-only tuples.
|
double |
getUsedScore(VarBindingDef binding)
Returns a measure of the "used-ness" of the given binding.
|
void |
remove(Tuple tuple)
Removes the given tuple from use in test cases.
|
String |
toString() |
void |
used(TestCaseDef testCase)
Asserts use of all tuples contained in the given test case.
|
void |
used(Tuple tuple)
Asserts that the given tuple has been used in a test case.
|
public Iterator<Tuple> getUnused(VarDef var)
public double getUnusedScore(VarBindingDef binding)
public Iterator<Tuple> getUsed(VarDef var)
public Iterator<Tuple> getUsedOnce(VarDef var)
public Iterator<Tuple> getUsed(VarDef var, boolean onceOnly)
public double getUsedScore(VarBindingDef binding)
public double getUsedOnceScore(VarBindingDef binding)
public void used(TestCaseDef testCase)
public void used(Tuple tuple)
public void remove(Tuple tuple)
public Tuple getNextUnused()
Copyright © 2024 The Cornutum Project. All rights reserved.