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