Package app. cash. turbine
Types
Link copied to clipboard
Represents active collection on a source Flow which buffers item emissions, completion, and/or errors as events for consuming.
Functions
Link copied to clipboard
suspend fun <T> Flow<T>.test(validate: suspend FlowTurbine<T>.() -> Unit)
Content copied to clipboard
Terminal flow operator that collects events from given flow and allows the validate lambda to consume and assert properties on them in order. If any exception occurs during validation the exception is rethrown from this method.
Link copied to clipboard
Terminal flow operator that collects events from given flow and returns a FlowTurbine for consuming and asserting properties on them in order. If any exception occurs during validation the exception is rethrown from this method.