Home
last modified time | relevance | path

Searched refs:TestCoroutineDispatcher (Results 1 – 9 of 9) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestCoroutineDispatcherTest.kt14 val subject = TestCoroutineDispatcher() in whenStringCalled_itReturnsString()
20 val subject = TestCoroutineDispatcher() in whenStringCalled_itReturnsCurrentTime()
27 val subject = TestCoroutineDispatcher() in whenStringCalled_itShowsQueuedJobs()
42 val subject = TestCoroutineDispatcher() in whenDispatcherPaused_doesntAutoProgressCurrent()
54 val subject = TestCoroutineDispatcher() in whenDispatcherResumed_doesAutoProgressCurrent()
66 val subject = TestCoroutineDispatcher() in whenDispatcherResumed_doesNotAutoProgressTime()
81 val subject = TestCoroutineDispatcher() in whenDispatcherPaused_thenResume_itDoesDispatchCurrent()
96 val subject = TestCoroutineDispatcher() in whenDispatcherHasUncompletedCoroutines_itThrowsErrorInCleanup()
108 val subject = TestCoroutineDispatcher() in whenDispatchCalled_runsOnCurrentThread()
127 val subject = TestCoroutineDispatcher() in whenAllDispatchersMocked_runsOnSameThread()
DTestBuildersTest.kt24 val dispatcher = TestCoroutineDispatcher() in dispatcherRunBlocking_passesDispatcher()
47 val dispatcher = TestCoroutineDispatcher() in dispatcherRunBlocking_advancesPreviousDelay()
85 val dispatcher = TestCoroutineDispatcher() in whenInAsync_runBlocking_nestsProperly()
DTestCoroutineDispatcherOrderTest.kt12 val dispatcher = TestCoroutineDispatcher() in testAdvanceTimeBy_progressesOnEachDelay()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DREADME.md190 to pause the [TestCoroutineDispatcher] that [runBlockingTest] uses.
236 …| [TestCoroutineDispatcher] | A [CoroutineDispatcher] which can be used for tests and integrates w…
239 …tested, it may be easier to provide a [TestCoroutineDispatcher]. For example [Dispatchers.setMain]…
240 a [TestCoroutineDispatcher] but not a [TestCoroutineScope].
242 [TestCoroutineScope] will always use a [TestCoroutineDispatcher] to execute coroutines. It
309 *Note:* [TestCoroutineScope], [TestCoroutineDispatcher], and [TestCoroutineExceptionHandler] are in…
313 ### Providing an explicit `TestCoroutineDispatcher`
316 many situations where it is easier to provide a [TestCoroutineDispatcher]. For example [Dispatchers…
317 does not accept a [TestCoroutineScope] and requires a [TestCoroutineDispatcher] to control coroutin…
320 The main difference between `TestCoroutineScope` and `TestCoroutineDispatcher` is how uncaught exce…
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestBuilders.kt79 public fun TestCoroutineDispatcher.runBlockingTest(block: suspend TestCoroutineScope.() -> Unit): U… in runBlockingTest()
86 this ?: TestCoroutineDispatcher() in runBlockingTest()
DTestCoroutineScope.kt51 if (context[ContinuationInterceptor] == null) safeContext += TestCoroutineDispatcher() in TestCoroutineScope()
DTestCoroutineDispatcher.kt28 public class TestCoroutineDispatcher: CoroutineDispatcher(), Delay, DelayController { in <lambda>() class
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api14 …public static final fun runBlockingTest (Lkotlinx/coroutines/test/TestCoroutineDispatcher;Lkotlin/…
19 public final class kotlinx/coroutines/test/TestCoroutineDispatcher : kotlinx/coroutines/CoroutineDi…
/external/kotlinx.coroutines/
DCHANGES.md345 …x-coroutines-test`: `runBlockingTest`, `TestCoroutineScope` and `TestCoroutineDispatcher`, contrib…