Searched refs:TestCoroutineDispatcher (Results 1 – 9 of 9) sorted by relevance
14 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()
24 val dispatcher = TestCoroutineDispatcher() in dispatcherRunBlocking_passesDispatcher()47 val dispatcher = TestCoroutineDispatcher() in dispatcherRunBlocking_advancesPreviousDelay()85 val dispatcher = TestCoroutineDispatcher() in whenInAsync_runBlocking_nestsProperly()
12 val dispatcher = TestCoroutineDispatcher() in testAdvanceTimeBy_progressesOnEachDelay()
190 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 …]
79 public fun TestCoroutineDispatcher.runBlockingTest(block: suspend TestCoroutineScope.() -> Unit): U… in runBlockingTest()86 this ?: TestCoroutineDispatcher() in runBlockingTest()
51 if (context[ContinuationInterceptor] == null) safeContext += TestCoroutineDispatcher() in TestCoroutineScope()
28 public class TestCoroutineDispatcher: CoroutineDispatcher(), Delay, DelayController { in <lambda>() class
14 …public static final fun runBlockingTest (Lkotlinx/coroutines/test/TestCoroutineDispatcher;Lkotlin/…19 public final class kotlinx/coroutines/test/TestCoroutineDispatcher : kotlinx/coroutines/CoroutineDi…
345 …x-coroutines-test`: `runBlockingTest`, `TestCoroutineScope` and `TestCoroutineDispatcher`, contrib…