Searched refs:StandardTestDispatcher (Results 1 – 15 of 15) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/ |
D | TestCoroutineScopeTest.kt | 33 val dispatcher = StandardTestDispatcher() in <lambda>() 47 val dispatcher = StandardTestDispatcher(scheduler) in <lambda>() 55 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>() 67 val mainDispatcher = StandardTestDispatcher() in <lambda>() 214 …StandardTestDispatcher() + TestCoroutineScheduler(), // the dispatcher is not linked to the schedu… in <lambda>()
|
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>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/ |
D | StandardTestDispatcherTest.kt | 13 private val scope = TestScope(StandardTestDispatcher()) in <lambda>() 68 val dispatcher1 = StandardTestDispatcher() in <lambda>() 71 val dispatcher2 = StandardTestDispatcher() in <lambda>()
|
D | TestScopeTest.kt | 35 val dispatcher = StandardTestDispatcher() in <lambda>() 49 val dispatcher = StandardTestDispatcher(scheduler) in <lambda>() 62 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>() 74 val mainDispatcher = StandardTestDispatcher() in <lambda>() 554 …StandardTestDispatcher() + TestCoroutineScheduler(), // the dispatcher is not linked to the schedu… in <lambda>()
|
D | TestCoroutineSchedulerTest.kt | 18 withContext(StandardTestDispatcher()) { in <lambda>() 331 StandardTestDispatcher(), in forTestDispatchers()
|
D | RunTestTest.kt | 63 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>() 263 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|
D | TestDispatchersTest.kt | 15 Dispatchers.setMain(StandardTestDispatcher()) in setUp()
|
D | UnconfinedTestDispatcherTest.kt | 157 val dispatcher1 = StandardTestDispatcher() in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/ |
D | TestCoroutineDispatchers.kt | 141 public fun StandardTestDispatcher( in StandardTestDispatcher() method 156 override fun toString(): String = "${name ?: "StandardTestDispatcher"}[scheduler=$scheduler]" in StandardTestDispatcher()
|
D | TestScope.kt | 201 null -> StandardTestDispatcher(get(TestCoroutineScheduler)) in withDelaySkipping()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/ |
D | MIGRATION.md | 46 * Both a simple `StandardTestDispatcher` that is always paused, and unconfined `UnconfinedTestDispa… 102 ## Replace usages of `pauseDispatcher` and `resumeDispatcher` with a `StandardTestDispatcher` 105 `withContext(StandardTestDispatcher(testScheduler))` 114 or pass a `StandardTestDispatcher` as an argument to `runBlockingTest`. 115 …This will lead to the test using a `StandardTestDispatcher`, which does not allow pausing and resu… 119 …a `withContext(StandardTestDispatcher(testScheduler))` block, or try using some other combinations… 120 …`StandardTestDispatcher` (where dispatches are needed) and `UnconfinedTestDispatcher` (where it is… 145 ### It uses `StandardTestDispatcher` by default, not `TestCoroutineDispatcher`. 170 If the `TestCoroutineDispatcher()` is simply removed, `StandardTestDispatcher()` will be used, whic… 388 ## Replace `TestCoroutineDispatcher` with `UnconfinedTestDispatcher` and `StandardTestDispatcher` [all …]
|
D | README.md | 21 | [StandardTestDispatcher] | A simple dispatcher with no special behavior other than being linked t… 240 val dispatcher1 = StandardTestDispatcher(scheduler, name = "IO dispatcher") 241 val dispatcher2 = StandardTestDispatcher(scheduler, name = "Background dispatcher") 284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler)) 355 …utes on the correct thread, then simply `launch` a new coroutine with the [StandardTestDispatcher]. 367 launch(StandardTestDispatcher(testScheduler)) { 444 [StandardTestDispatcher]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kot…
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/ |
D | MultithreadingTest.kt | 108 val job = launch(StandardTestDispatcher(scheduler)) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/ |
D | kotlinx-coroutines-test.api | 53 …public static final fun StandardTestDispatcher (Lkotlinx/coroutines/test/TestCoroutineScheduler;Lj… 54 …public static synthetic fun StandardTestDispatcher$default (Lkotlinx/coroutines/test/TestCoroutine…
|