@@ -9,7 +9,7 @@ This guide is written step-by-step; the idea is to separate the migration into s
9
9
We couldn't find any code that defined new implementations of these interfaces, so they are deprecated. It's likely that
10
10
you don't need to do anything for this section.
11
11
12
- ### ` UncaughtExceptionCaptor `
12
+ ### UncaughtExceptionCaptor
13
13
14
14
If the code base has an ` UncaughtExceptionCaptor ` , its special behavior as opposed to just ` CoroutineExceptionHandler `
15
15
was that, at the end of ` runBlockingTest ` or ` cleanupTestCoroutines ` (or both), its ` cleanupTestCoroutines ` procedure
@@ -35,7 +35,7 @@ fun testFoo() = runTest {
35
35
}
36
36
```
37
37
38
- ### ` DelayController `
38
+ ### DelayController
39
39
40
40
We don't provide a way to define custom dispatching strategies that support virtual time.
41
41
That said, we significantly enhanced this mechanism:
@@ -48,7 +48,7 @@ That said, we significantly enhanced this mechanism:
48
48
If you have a use case for ` DelayController ` that's not covered by what we provide, please tell us about it in the issue
49
49
tracker.
50
50
51
- ### ` TestCoroutineScope `
51
+ ### TestCoroutineScope
52
52
53
53
This scope couldn't be meaningfully used in tandem with ` runBlockingTest ` : according to the definition of
54
54
` TestCoroutineScope.runBlockingTest ` , only the scope's ` coroutineContext ` is used.
@@ -142,7 +142,7 @@ Significant differences of `runTest` from `runBlockingTest` are each given a sec
142
142
143
143
No action on your part is required, other than replacing ` runBlocking ` with ` runTest ` as well.
144
144
145
- ### It uses ` StandardTestDispatcher ` by default, not ` TestCoroutineDispatcher ` .
145
+ ### It uses StandardTestDispatcher by default, not TestCoroutineDispatcher.
146
146
147
147
By now, calls to ` pauseDispatcher ` and ` resumeDispatcher ` should be purged from the code base, so only the unpaused
148
148
variant of ` TestCoroutineDispatcher ` should be used.
@@ -304,7 +304,7 @@ fun testFoo() = runTest {
304
304
}
305
305
```
306
306
307
- ### Only a single call to ` runTest ` is permitted per test.
307
+ ### Only a single call to runTest is permitted per test.
308
308
309
309
In order to work on JS, only a single call to ` runTest ` must happen during one test, and its result must be returned
310
310
immediately:
@@ -323,7 +323,7 @@ When used only on the JVM, `runTest` will work when called repeatedly, but this
323
323
Please only call ` runTest ` once per test, and if for some reason you can't, please tell us about in on the issue
324
324
tracker.
325
325
326
- ### It uses ` TestScope ` , not ` TestCoroutineScope ` , by default.
326
+ ### It uses TestScope, not TestCoroutineScope, by default.
327
327
328
328
There is a ` runTestWithLegacyScope ` method that allows migrating from ` runBlockingTest ` to ` runTest ` before migrating
329
329
from ` TestCoroutineScope ` to ` TestScope ` , if exactly the ` TestCoroutineScope ` needs to be passed somewhere else and
0 commit comments