/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/ |
D | TestScope.kt | 47 public val testScheduler: TestCoroutineScheduler in <lambda>() constant 92 get() = testScheduler.currentTime 99 public fun TestScope.advanceUntilIdle(): Unit = testScheduler.advanceUntilIdle() in advanceUntilIdle() 108 public fun TestScope.runCurrent(): Unit = testScheduler.runCurrent() in advanceUntilIdle() 121 public fun TestScope.advanceTimeBy(delayTimeMillis: Long): Unit = testScheduler.advanceTimeBy(delay… in advanceUntilIdle() 131 public fun TestScope.advanceTimeBy(delayTime: Duration): Unit = testScheduler.advanceTimeBy(delayTi… in advanceUntilIdle() 139 public val TestScope.testTimeSource: TimeSource.WithComparableMarks get() = testScheduler.timeSource in advanceUntilIdle() 210 override val testScheduler get() = context[TestCoroutineScheduler]!! constant 275 if (!testScheduler.isIdle()) in legacyLeave()
|
D | TestBuilders.kt | 320 val executedSomething = testScheduler.tryRunNextTaskUnless { !isActive } in runTest() 327 testScheduler.receiveDispatchEvent() in runTest() 366 testScheduler.advanceUntilIdleOr { false } in runTest() 398 testScheduler.advanceUntilIdleOr { false } in runTest()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/migration/ |
D | TestCoroutineScope.kt | 55 public val testScheduler: TestCoroutineScheduler in <lambda>() constant 83 override val testScheduler: TestCoroutineScheduler constant in kotlinx.coroutines.test.TestCoroutineScopeImpl 100 testScheduler.runCurrent() in cleanupTestCoroutines() 101 !testScheduler.isIdle(strict = false) in cleanupTestCoroutines() 229 get() = coroutineContext.delayController?.currentTime ?: testScheduler.currentTime 248 testScheduler.advanceTimeBy(delayTimeMillis) in advanceTimeBy() 249 testScheduler.runCurrent() in advanceTimeBy() 263 coroutineContext.delayController?.advanceUntilIdle() ?: testScheduler.advanceUntilIdle() in advanceUntilIdle() 274 coroutineContext.delayController?.runCurrent() ?: testScheduler.runCurrent() in runCurrent()
|
D | TestBuildersDeprecated.kt | 65 val scheduler = scope.testScheduler in runBlockingTest() 92 scope.testScheduler.advanceUntilIdle() in runBlockingTestOnTestScope() 99 scope.testScheduler.advanceUntilIdleOr { false } in runBlockingTestOnTestScope() 213 override val testScheduler get() = testScope.testScheduler in runTest() constant in kotlinx.coroutines.test.TestBodyCoroutine
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/ |
D | TestCoroutineSchedulerTest.kt | 32 testScheduler.advanceTimeBy(15.milliseconds) in <lambda>() 34 testScheduler.runCurrent() in <lambda>() 69 testScheduler.advanceTimeBy(Duration.INFINITE) in <lambda>() 73 testScheduler.runCurrent() in <lambda>() 76 testScheduler.advanceUntilIdle() in <lambda>() 124 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>() 128 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>()
|
D | UnconfinedTestDispatcherTest.kt | 77 val job = launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>() 125 val job = launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>()
|
D | RunTestTest.kt | 63 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>() 263 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/ |
D | MemoryLeakTest.kt | 19 FieldWalker.assertReachableCount(1, testScheduler) { it === leakingObject } in <lambda>() 21 FieldWalker.assertReachableCount(0, testScheduler) { it === leakingObject } in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/ |
D | README.md | 205 val workDuration = testScheduler.timeSource.measureTime { 217 testScheduler.runCurrent() 219 …testScheduler.advanceTimeBy(2.seconds) // progress time, this will cause two calls to `delay` to r… 221 testScheduler.advanceUntilIdle() // will run the child coroutine to completion 234 To access the scheduler used for this test, use the [TestScope.testScheduler] property. 239 val scheduler = testScheduler // the scheduler used for this test 284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler)) 367 launch(StandardTestDispatcher(testScheduler)) { 447 [TestScope.testScheduler]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/ko…
|
D | MIGRATION.md | 105 `withContext(StandardTestDispatcher(testScheduler))` 106 (`testScheduler` is available as a field of `TestCoroutineScope`, 119 …a `withContext(StandardTestDispatcher(testScheduler))` block, or try using some other combinations… 221 val job = launch(UnconfinedTestDispatcher(testScheduler)) { // <------ 236 Note that `testScheduler` is passed so that the unconfined dispatcher is linked to `runTest`.
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/ |
D | RunTestLegacyScopeTest.kt | 58 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>() 145 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|
D | RunBlockingTestOnTestScopeTest.kt | 48 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|