CapturedResult

data class CapturedResult<T>(val returnedValue: T, val consoleOutput: List<String>)

Combined representation of executing a function: the return value as well as any console output.

Parameters

T

type of the function return value

returnedValue

function return value

consoleOutput

line(s) of console output

Constructors

Link copied to clipboard
constructor(returnedValue: T, vararg consoleOutput: String)
constructor(returnedValue: T, consoleOutput: List<String>)

provides for construction via either a list of console outputs or a variable number of arguments

Properties

Link copied to clipboard
Link copied to clipboard