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 Summary
Fields Modifier and Type Field Description private long
executionTimeNanos
The execution time, in nanoseconds.(package private) String
output
The standard output and error output of executing the sequence.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExecutionOutcome(long executionTimeNanos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get_output()
Retrieve the output of the statement.long
getExecutionTimeNanos()
How long the associated statement took to execute, in nanoseconds.void
set_output(String output)
Set the output of the statement.
-
-
-
Field Detail
-
executionTimeNanos
private final long executionTimeNanos
The execution time, in nanoseconds.
-
output
String output
The standard output and error output of executing the sequence. Only populated ifGenInputsAbstract.capture_output
is true.
-
-
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
-
-