Package org.orbitmvi.orbit.test

Types

Link copied to clipboard
sealed class Item<STATE : Any, SIDE_EFFECT : Any>
Link copied to clipboard
interface OrbitTestContext<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST>
Link copied to clipboard
class RealOrbitTestContext<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST>(actual: CONTAINER_HOST, initialState: STATE?, emissions: <ERROR CLASS><Item<STATE, SIDE_EFFECT>>) : OrbitTestContext<STATE, SIDE_EFFECT, CONTAINER_HOST>
Link copied to clipboard
data class TestSettings(dispatcherOverride: <ERROR CLASS>?, exceptionHandlerOverride: <ERROR CLASS>?)

Functions

Link copied to clipboard
suspend fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST> CONTAINER_HOST.test(testScope: <ERROR CLASS>, initialState: STATE? = 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.