Home
last modified time | relevance | path

Searched refs:TestCoroutineScope (Results 1 – 10 of 10) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestBuilders.kt45 …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()
DTestCoroutineScope.kt14 public interface TestCoroutineScope: CoroutineScope, UncaughtExceptionCaptor, DelayController { interface
29 TestCoroutineScope, in cleanupTestCoroutines()
49 public fun TestCoroutineScope(context: CoroutineContext = EmptyCoroutineContext): TestCoroutineScop… in TestCoroutineScope() method
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestBuildersTest.kt16 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()
DTestCoroutineScopeTest.kt16 TestCoroutineScope(handler) in <lambda>()
23 TestCoroutineScope(newSingleThreadContext("incorrect call")) in <lambda>()
DTestCoroutineDispatcherTest.kt28 val scope = TestCoroutineScope(subject) in whenStringCalled_itShowsQueuedJobs()
109 val scope = TestCoroutineScope(subject) in whenDispatchCalled_runsOnCurrentThread()
128 val scope = TestCoroutineScope(subject) in whenAllDispatchersMocked_runsOnSameThread()
DTestCoroutineDispatcherOrderTest.kt13 val scope = TestCoroutineScope(dispatcher) in testAdvanceTimeBy_progressesOnEachDelay()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DREADME.md235 …| [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 this
259 launch { // CoroutineScope for launch is the TestCoroutineScope provided by runBlockingTest
267 ### Providing an explicit `TestCoroutineScope`
272 Tests can declare a [TestCoroutineScope] explicitly in the class to support these use cases.
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api15 …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…
/external/kotlinx.coroutines/
DREADME.md44 * [TestCoroutineScope] to test suspending functions and coroutines.
257 [TestCoroutineScope]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.c…
DCHANGES.md345 …ne-specific code in `kotlinx-coroutines-test`: `runBlockingTest`, `TestCoroutineScope` and `TestCo…