Package randoop

Class 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 Detail

      • executionTimeNanos

        private final long executionTimeNanos
        The execution time, in nanoseconds.
    • Constructor Detail

      • ExecutionOutcome

        protected ExecutionOutcome​(long executionTimeNanos)
        Parameters:
        executionTimeNanos - the execution time, in nanoseconds
    • Method Detail

      • getExecutionTimeNanos

        public long getExecutionTimeNanos()
        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