Package-level declarations

Types

Link copied to clipboard

A class which implements a dsl for testing Store.

Functions

Link copied to clipboard
inline suspend fun <S : MVIState, I : MVIIntent, A : MVIAction> Store<S, I, A>.subscribeAndTest(crossinline block: suspend StoreTestScope<S, I, A>.() -> Unit): Job

Call Store.start, then call Store.subscribe and execute block inside that scope. Unsubscribe and stop the store afterwards

Link copied to clipboard
inline suspend fun <S : MVIState, I : MVIIntent, A : MVIAction> Store<S, I, A>.test(crossinline block: suspend Store<S, I, A>.(job: Job) -> Unit): Job

Call Store.start and then execute block, cancelling the store afterwards

Link copied to clipboard
fun TestScope.wait()

Alias for TestScope.advanceUntilIdle.