TestFlowCollector

interface TestFlowCollector<T>

Properties

Link copied to clipboard
abstract val collectedItems: List<T>

Get the list of all collected items emitted by the flow.

Link copied to clipboard

Get the current status of collecting items

Link copied to clipboard
open val count: Int

Total count of collected items

Link copied to clipboard
open val hasItems: Boolean

Whether there is at least one collected item

Link copied to clipboard
open val lastItem: T

The last collected item from the flow

Functions

Link copied to clipboard
abstract fun cancel()

Cancel collecting the flow.