Package-level declarations

Types

Link copied to clipboard
sealed class Item<STATE : Any, SIDE_EFFECT : Any>
Link copied to clipboard
Link copied to clipboard
data class TestSettings(val dispatcherOverride: CoroutineDispatcher? = null, val exceptionHandlerOverride: CoroutineExceptionHandler? = null)

Functions

Link copied to clipboard
suspend fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.test(testScope: TestScope, initialState: STATE? = null, timeout: Duration? = null, settings: TestSettings = TestSettings(), validate: suspend OrbitTestContext<STATE, SIDE_EFFECT, CONTAINER_HOST>.() -> Unit)

Run tests on your ContainerHost. This mode uses a real Orbit container, but the container's CoroutineDispatcher is set to the TestScope's background dispatcher.