Package randoop

Class ExecutionOutcome

java.lang.Object
randoop.ExecutionOutcome
Direct Known Subclasses:
ExceptionalExecution, NormalExecution, NotExecuted

public abstract class ExecutionOutcome extends Object
Represents the outcome of executing one statement in a sequence, including:
  • the value returned by the statement, or the exception thrown.
  • the execution time
  • the textual output
  • Field Details

    • executionTime

      private final long executionTime
      The execution time, in nanoseconds.
    • output

      String output
      The standard output and error output of executing the sequence. Only populated if GenInputsAbstract.capture_output is true.
  • Constructor Details

    • ExecutionOutcome

      protected ExecutionOutcome(long executionTime)
      Parameters:
      executionTime - the execution time, in nanoseconds
  • Method Details

    • getExecutionTime

      public long getExecutionTime()
      How long the associated statement took to execute, in nanoseconds.
      Returns:
      the execution time for the statement, in nanoseconds
    • set_output

      public void set_output(String output)
      Set the output of the statement.
      Parameters:
      output - the statement output
    • get_output

      public String get_output()
      Retrieve the output of the statement.
      Returns:
      the statement output