Interface ResultCache
-
- All Known Implementing Classes:
HashMapResultCache
public interface ResultCache
Cache for results of executed test inputs to reduce the execution time. As soon as a test inputCombination
is executed, theTestResult
is stored in the cache. If theTestResult
for an already executed test input is requested, theTestResult
is loaded from cache instead of re-executing the test input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addResultIfAbsentFor(Combination testInput, TestResult result)
boolean
containsResultFor(Combination testInput)
TestResult
getResultFor(Combination testInput)
-
-
-
Method Detail
-
containsResultFor
boolean containsResultFor(Combination testInput)
- Parameters:
testInput
- test input to check whether a result is present for.- Returns:
- true iff result for test input is present.
-
getResultFor
TestResult getResultFor(Combination testInput)
- Parameters:
testInput
- test input to load a result for.- Returns:
- result for the requested test input.
-
addResultIfAbsentFor
void addResultIfAbsentFor(Combination testInput, TestResult result)
- Parameters:
testInput
- test input to store a result for.result
- result to be stored.
-
-