Package-level declarations
Types
Link copied to clipboard
class LiveTestSettingsBuilder
Link copied to clipboard
Link copied to clipboard
class RegularTestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>(actual: CONTAINER_HOST, initialState: STATE?) : TestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
Link copied to clipboard
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>
Link copied to clipboard
sealed class TestContainerHost<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>>
Link copied to clipboard
Allows you to record all observed values of a flow for easy testing.
Link copied to clipboard
class TestSettingsBuilder
Functions
Link copied to clipboard
fun <STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST : ContainerHost<STATE, SIDE_EFFECT>> CONTAINER_HOST.liveTest(initialState: STATE? = null, buildSettings: LiveTestSettingsBuilder.() -> Unit = {}): RegularTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
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, buildSettings: TestSettingsBuilder.() -> Unit = {}): SuspendingTestContainerHost<STATE, SIDE_EFFECT, CONTAINER_HOST>
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.