ExpectationResult

sealed class ExpectationResult<in T>

Class for representing the results of an expectation

Inheritors

Types

Link copied to clipboard
data class DidNotMatch<T>(val message: String, val atTokenIndex: Int) : ExpectationResult<T>

This expectation did not match.

Link copied to clipboard
data class Success<T>(val stored: Map<NodeParameterKey<T, *>, *>, val nextIndex: Int, val matchBounds: Pair<Int, Int>, val stopReason: String = "End of expectation reached") : ExpectationResult<T>

This expectation matched successfully. It stored values in stored and the next index that needs to be checked would be nextIndex.