PluginTestScope

Properties

Link copied to clipboard
abstract val config: StoreConfiguration<S>
Link copied to clipboard
Link copied to clipboard
abstract val isActive: Boolean
Link copied to clipboard
abstract val isStarted: Boolean
Link copied to clipboard
open override val key: CoroutineContext.Key<*>
Link copied to clipboard
abstract val name: String?
Link copied to clipboard
abstract override val states: StateFlow<S>
Link copied to clipboard
abstract val subscriberCount: StateFlow<Int>
Link copied to clipboard
abstract val timeTravel: TimeTravel<S, I, A>

Functions

Link copied to clipboard
abstract suspend fun action(action: A)
Link copied to clipboard
abstract suspend fun awaitStartup()
Link copied to clipboard
abstract suspend fun awaitUntilClosed()
Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract suspend fun closeAndWait()
Link copied to clipboard
abstract fun compareAndSet(old: S, new: S): Boolean
Link copied to clipboard
open suspend fun <T> Flow<T>.consume(context: CoroutineContext)
Link copied to clipboard
abstract suspend fun emit(intent: I)
Link copied to clipboard
Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
abstract fun intent(intent: I)
Link copied to clipboard
open operator override fun invoke(config: StoreConfiguration<S>): StorePlugin<S, I, A>
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onAction(action: A): A?
Link copied to clipboard
open fun onActionDispatch(action: A): A?
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onException(e: Exception): Exception?
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onIntent(intent: I): I?
Link copied to clipboard
open fun onIntentEnqueue(intent: I): I?
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onStart()
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onState(old: S, new: S): S?
Link copied to clipboard
open fun ShutdownContext<S, I, A>.onStop(e: Exception?)
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onSubscribe(newSubscriberCount: Int)
Link copied to clipboard
open fun ShutdownContext<S, I, A>.onUndeliveredAction(action: A)
Link copied to clipboard
open fun ShutdownContext<S, I, A>.onUndeliveredIntent(intent: I)
Link copied to clipboard
open suspend fun PipelineContext<S, I, A>.onUnsubscribe(newSubscriberCount: Int)
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
Link copied to clipboard
abstract fun send(action: A)
Link copied to clipboard
suspend fun <S : MVIState, I : MVIIntent, A : MVIAction> LazyPlugin<S, I, A>.test(initial: S, timeTravel: TimeTravel<S, I, A> = TimeTravel(), configuration: StoreConfigurationBuilder.() -> Unit = { debuggable = true }, block: suspend PluginTestScope<S, I, A>.() -> Unit)

A function that runs a test on a StorePlugin.

Link copied to clipboard
abstract suspend fun updateState(transform: suspend S.() -> S)
Link copied to clipboard
abstract suspend fun withState(block: suspend S.() -> Unit)