Package-level declarations

Types

Link copied to clipboard
interface CoroutineTest
Link copied to clipboard
interface LazySuspend<out T>
Link copied to clipboard
interface LoggedTest

The precedence works like the following:

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val TestScope.testClock: Clock

Functions

Link copied to clipboard
fun CoroutineTestScope(coroutineContext: CoroutineContext = EmptyCoroutineContext): TestScope
Link copied to clipboard
operator fun <T> LazySuspend<T>.getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
fun CoroutineTest.runTest(timeout: Duration? = defaultTimeout, testBody: suspend TestScope.() -> Unit): TestResult
fun <T> CoroutineTest.runTest(timeout: Duration? = defaultTimeout, setup: suspend TestScope.() -> T, testBody: suspend TestScope.(T) -> Unit): TestResult
Link copied to clipboard
fun CoroutineTest.scheduleSetup(block: ScheduledTaskLambda)
Link copied to clipboard
fun CoroutineTest.scheduleTeardown(block: ScheduledTaskLambda)
Link copied to clipboard
fun <T> CoroutineTest.suspendLazy(block: suspend TestScope.() -> T): LazySuspend<T>