TestSessionScript

Scripted transitions used to drive session state updates in tests.

Launch and commit transitions are queued and consumed on each respective call. The optional cancelState is applied when Session.cancel is invoked.

Types

Link copied to clipboard
object Companion

Factories for TestSessionScript.

Functions

Link copied to clipboard

Clears all scripted transitions.

Link copied to clipboard

Clears the cancel transition.

Link copied to clipboard

Clears any queued commit transitions.

Link copied to clipboard

Clears any queued launch transitions.

Link copied to clipboard

Sets a state to apply when Session.cancel is invoked.

Link copied to clipboard
fun onCommit(vararg states: Session.State<F>): TestSessionScript<F>

Enqueues a sequence of states to apply after Session.commit.

Link copied to clipboard
fun onLaunch(vararg states: Session.State<F>): TestSessionScript<F>

Enqueues a sequence of states to apply after Session.launch.