ExpectedRepeated
class ExpectedRepeated<T, R>(minIterations: Int?, maxIterations: Int?, repeatableExpectations: List<Expectation<RepeatedItemReceiver<R>, *>>, stateCallback: StateCallback<T, List<R>, *>?) : Expectation<T, List<R>> , HandlesTokenDrought
A repeated branch that runs 0+ iterations of some expectations and collects the results into a list. Said list can then be stored in the model results.
Constructors
Link copied to clipboard
constructor(minIterations: Int?, maxIterations: Int?, repeatableExpectations: List<Expectation<RepeatedItemReceiver<R>, *>>, stateCallback: StateCallback<T, List<R>, *>?)
Functions
Link copied to clipboard
Check if this expectation matches the given context at the given index among the context's tokens list.
Properties
Link copied to clipboard
The name of the argument where the result of this expectation should be stored, or null
if the matched value of this expectation should not or cannot be stored.
Link copied to clipboard
Title of this expectation. This should be a shortened description of what this expectation is. For example, an expectation for a node could have the title expect(SomeNode)
. If possible and legible, this title should be similar to the DSL expression for creating the expectation