Package-level declarations

Types

Link copied to clipboard
interface Queue<T> : Collection<T>

A Collection that mutates in a FIFO manner.

Link copied to clipboard

A DispatchScope for testing purposes that registers dispatched actions.

Link copied to clipboard

ReduKt store for testing purposes that registers dispatched actions.

Functions

Link copied to clipboard
fun <T> emptyQueue(): Queue<T>

Creates empty queue of type T.

Link copied to clipboard
inline fun <T> Queue<T>.pullEach(block: (T) -> Unit)
Link copied to clipboard
fun <T> queueOf(vararg items: T): Queue<T>

Creates a queue of type T with initial items in a given order.

Link copied to clipboard
fun <State> TestDispatchScope(initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, initialOnDispatch: MutableDispatchScope<State>.(Action) -> Unit = { }): TestDispatchScope<State>
Link copied to clipboard
fun <State> TestStore(initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, initialOnDispatch: MutableDispatchScope<State>.(Action) -> Unit = { }, strict: Boolean = true): TestStore<State>

Creates a TestStore with initialState, initialClosure and strict. If strict is true, every TestStore.test must verify every dispatched action.

Link copied to clipboard

Transforms collection into Queue.