Package randoop
Class ExecutionOutcome
java.lang.Object
randoop.ExecutionOutcome
- Direct Known Subclasses:
ExceptionalExecution
,NormalExecution
,NotExecuted
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
Modifier and TypeFieldDescriptionprivate final long
The execution time, in nanoseconds.(package private) String
The standard output and error output of executing the sequence. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the output of the statement.long
How long the associated statement took to execute, in nanoseconds.void
set_output
(String output) Set the output of the statement.
-
Field Details
-
executionTime
private final long executionTimeThe execution time, in nanoseconds. -
output
String outputThe standard output and error output of executing the sequence. Only populated ifGenInputsAbstract.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
Set the output of the statement.- Parameters:
output
- the statement output
-
get_output
Retrieve the output of the statement.- Returns:
- the statement output
-