Searched refs:TestCoroutineScope (Results 1 – 10 of 10) sorted by relevance
45 …ntext: CoroutineContext = EmptyCoroutineContext, testBody: suspend TestCoroutineScope.() -> Unit) { in runBlockingTest()48 val scope = TestCoroutineScope(safeContext) in runBlockingTest()72 public fun TestCoroutineScope.runBlockingTest(block: suspend TestCoroutineScope.() -> Unit): Unit = in runBlockingTest()79 public fun TestCoroutineDispatcher.runBlockingTest(block: suspend TestCoroutineScope.() -> Unit): U… in runBlockingTest()
14 public interface TestCoroutineScope: CoroutineScope, UncaughtExceptionCaptor, DelayController { interface29 TestCoroutineScope, in cleanupTestCoroutines()49 public fun TestCoroutineScope(context: CoroutineContext = EmptyCoroutineContext): TestCoroutineScop… in TestCoroutineScope() method
16 val scope = TestCoroutineScope() in scopeRunBlocking_passesDispatcher()32 val scope = TestCoroutineScope() in scopeRunBlocking_advancesPreviousDelay()63 val scope = TestCoroutineScope() in scopeRunBlocking_disablesImmedateOnExit()86 val scope = TestCoroutineScope(dispatcher) in whenInAsync_runBlocking_nestsProperly()111 val scope = TestCoroutineScope() in whenInrunBlocking_runBlockingTest_nestsProperly()
16 TestCoroutineScope(handler) in <lambda>()23 TestCoroutineScope(newSingleThreadContext("incorrect call")) in <lambda>()
28 val scope = TestCoroutineScope(subject) in whenStringCalled_itShowsQueuedJobs()109 val scope = TestCoroutineScope(subject) in whenDispatchCalled_runsOnCurrentThread()128 val scope = TestCoroutineScope(subject) in whenAllDispatchersMocked_runsOnSameThread()
13 val scope = TestCoroutineScope(dispatcher) in testAdvanceTimeBy_progressesOnEachDelay()
235 …| [TestCoroutineScope] | A [CoroutineScope] which provides detailed control over the execution of …240 a [TestCoroutineDispatcher] but not a [TestCoroutineScope].242 [TestCoroutineScope] will always use a [TestCoroutineDispatcher] to execute coroutines. It 245 By providing [TestCoroutineScope] a test case is able to control execution of coroutines, as well a…248 ### Providing `TestCoroutineScope` from `runBlockingTest`250 In simple cases, tests can use the [TestCoroutineScope] created by [runBlockingTest] directly.255 foo() // runBlockingTest passed in a TestCoroutineScope as this259 launch { // CoroutineScope for launch is the TestCoroutineScope provided by runBlockingTest267 ### Providing an explicit `TestCoroutineScope`272 Tests can declare a [TestCoroutineScope] explicitly in the class to support these use cases.[all …]
15 …public static final fun runBlockingTest (Lkotlinx/coroutines/test/TestCoroutineScope;Lkotlin/jvm/f…44 public abstract interface class kotlinx/coroutines/test/TestCoroutineScope : kotlinx/coroutines/Cor…49 …public static final fun TestCoroutineScope (Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutin…50 …ynthetic fun TestCoroutineScope$default (Lkotlin/coroutines/CoroutineContext;ILjava/lang/Object;)L…
44 * [TestCoroutineScope] to test suspending functions and coroutines.257 [TestCoroutineScope]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.c…
345 …ne-specific code in `kotlinx-coroutines-test`: `runBlockingTest`, `TestCoroutineScope` and `TestCo…