PluginTestScope
class PluginTestScope<S : MVIState, I : MVIIntent, A : MVIAction> : PipelineContext<S, I, A> , StorePlugin<S, I, A>
A class which provides DSL for testing a StorePlugin.
Contains:
ctx or
this
- a mock pipeline context configured specifically for testing.TestPipelineContext.plugin - the plugin being tested
timeTravel embedded time travel plugin to track any side effects that the plugin produces.
See StorePlugin.test for a function that allows to test the plugin
Constructors
Link copied to clipboard
constructor(configuration: StoreConfiguration<S>, plugin: LazyPlugin<S, I, A>, timeTravel: TimeTravel<S, I, A>)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun <S : MVIState, I : MVIIntent, A : MVIAction> LazyPlugin<S, I, A>.test(initial: S, timeTravel: TimeTravel<S, I, A> = TimeTravel(), crossinline configuration: StoreConfigurationBuilder.() -> Unit = { debuggable = true }, crossinline block: suspend PluginTestScope<S, I, A>.() -> Unit)
A function that runs a test on a StorePlugin.
Link copied to clipboard
Link copied to clipboard