presenterTestOf
suspend fun <UiState : CircuitUiState> presenterTestOf(presentFunction: @Composable () -> UiState, timeout: Duration? = null, name: String? = null, block: suspend ReceiveTurbine<UiState>.() -> Unit)(source)
Presents this presentFunction and invokes a suspend
ReceiveTurbine that can be used to assert state emissions from it.
Parameters
presentFunction
the Composable present function being tested.
timeout
an optional timeout for the test. Defaults to 1 second (in Turbine) if undefined.
block
the block to invoke.
See also
moleculeFlow
test