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 input Combination is executed, the TestResult is stored in the cache. If the TestResult for an already executed test input is requested, the TestResult is loaded from cache instead of re-executing the test input.
    • 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.