Package org.orbitmvi.orbit

Types

OrbitVerification
Link copied to clipboard
common
class OrbitVerification<STATE : Any, SIDE_EFFECT : Any>
RegularTestContainerHost
Link copied to clipboard
common
class RegularTestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>(actual: CONTAINER_HOST, initialState: STATE) : TestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
SuspendingTestContainerHost
Link copied to clipboard
common
class SuspendingTestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>(actual: CONTAINER_HOST, initialState: STATE, isolateFlow: Boolean) : TestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
TestContainerHost
Link copied to clipboard
common
sealed class TestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>
TestFlowObserver
Link copied to clipboard
common
class TestFlowObserver<T>(flow: Flow<T>)
Allows you to record all observed values of a flow for easy testing.

Functions

liveTest
Link copied to clipboard
common
fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.liveTest(initialState: STATE, settings: Container.Settings = container.settings.copy(intentDispatcher = Dispatchers.Unconfined)): RegularTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
Puts your ContainerHost into live test mode.
test
Link copied to clipboard
common
fun <T> Flow<T>.test(): TestFlowObserver<T>
Allows you to put a Flow into test mode.
fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.test(initialState: STATE, isolateFlow: Boolean = true, settings: Container.Settings = container.settings): SuspendingTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
Puts your ContainerHost into suspending test mode.