Package-level declarations

Types

Link copied to clipboard

This interface represents the current state of a command execution started by FlowTestScope.executeInBackground.

Link copied to clipboard
sealed class CollectStatus

The current state of collecting Kotlin Flow

Link copied to clipboard
interface FlowTestScope

This scope provides a helper startCollecting method for easier testing of Kotlin Flows.

Link copied to clipboard
sealed class JobStatus<out T>
Link copied to clipboard
interface TestFlowCollector<T>

Functions

Link copied to clipboard
fun runFlowTest(block: suspend FlowTestScope.() -> Unit)

Create a new TestScope and start a unit test for testing Kotlin Flow / suspend functions.

Link copied to clipboard
fun TestScope.runFlowTest(block: suspend FlowTestScope.() -> Unit)

Start a unit test for testing suspend functions and Kotlin Flows using existing TestScope.