Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TestFlowObserver<T>(flow: Flow<T>)

Allows you to record all observed values of a flow for easy testing.

Link copied to clipboard

Functions

Link copied to clipboard

Puts your ContainerHost into live test mode. This mode uses a real Orbit container with some basic test settings. Orbit dispatchers are overridden with UnconfinedTestDispatcher by default.

Link copied to clipboard
fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.test(initialState: STATE? = null, isolateFlow: Boolean = true, buildSettings: TestSettingsBuilder.() -> Unit = {}): SuspendingTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>

Puts your ContainerHost into suspending test mode. Intents are intercepted and executed as suspending functions.

Link copied to clipboard

Allows you to put a Flow into test mode.