Package org. orbitmvi. orbit. test
Types
Link copied to clipboard
interface OrbitTestContext<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST>
Content copied to clipboard
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>
Content copied to clipboard
Link copied to clipboard
data class TestSettings(dispatcherOverride: <ERROR CLASS>?, exceptionHandlerOverride: <ERROR CLASS>?)
Content copied to clipboard
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)
Content copied to clipboard
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.