Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
abstract class BaseFlowTest<Configration, Context : BaseUIThreadTest.TestContext, T, F : Flow<T>>(val scope: CoroutineScope = MainScope(), val logger: Logger? = null) : BaseUIThreadTest<Configration, Context> , CoroutineScope
Link copied to clipboard
This class allows a test block to be run on the UI thread inside a custom context that is also created in the UI Thread using a configuration.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class FlowTest<T, F : Flow<T>>(scope: CoroutineScope = MainScope()) : BaseFlowTest<Unit, BaseUIThreadTest.EmptyTestContext, T, F>
Link copied to clipboard
Link copied to clipboard
typealias FlowTestBlockWithContext<Configuration, Context, T, F> = suspend BaseFlowTest<Configuration, Context, T, F>.(F) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This class allows a test block to be run on the UI thread inside a custom context that is also created in the UI Thread.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> testBlockingAndCancelScope(context: CoroutineContext = EmptyCoroutineContext, crossinline block: suspend CoroutineScope.() -> T): T
Link copied to clipboard
Calls yield for a number of times
Link copied to clipboard
suspend fun yieldUntil(timeout: Duration = Duration.INFINITE, timesPerTurn: Int = DEFAULT_MULTIPLE_TIMES_YIELDS, delayPerTurn: Duration = 10.milliseconds, constraint: () -> Boolean)
Calls yield until a constraint is met. After yielding a number of times there is a delay to prevent maxing out the CPU.