Package randoop.test

Class RegressionTestPredicate

java.lang.Object
randoop.test.RegressionTestPredicate
All Implemented Interfaces:
Predicate<ExecutableSequence>

public class RegressionTestPredicate extends Object implements Predicate<ExecutableSequence>
RegressionTestPredicate determines whether to keep an ExecutableSequence as a regression test.
  • Constructor Details

    • RegressionTestPredicate

      public RegressionTestPredicate()
  • Method Details

    • test

      public boolean test(ExecutableSequence eseq)
      Determines whether an executable sequence is a valid regression test. In particular, shouldn't have failures (an error-revealing test), and shouldn't have TimeoutExceededException.

      A true result means the test is a candidate for output.

      Specified by:
      test in interface Predicate<ExecutableSequence>
      Returns:
      true if has no failures and does not involve a timeout exception, false otherwise