Skip to content

Commit 383f8ae

Browse files
committed
third level header - remove code
1 parent a201397 commit 383f8ae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

kotlinx-coroutines-test/MIGRATION.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide is written step-by-step; the idea is to separate the migration into s
99
We couldn't find any code that defined new implementations of these interfaces, so they are deprecated. It's likely that
1010
you don't need to do anything for this section.
1111

12-
### `UncaughtExceptionCaptor`
12+
### UncaughtExceptionCaptor
1313

1414
If the code base has an `UncaughtExceptionCaptor`, its special behavior as opposed to just `CoroutineExceptionHandler`
1515
was that, at the end of `runBlockingTest` or `cleanupTestCoroutines` (or both), its `cleanupTestCoroutines` procedure
@@ -35,7 +35,7 @@ fun testFoo() = runTest {
3535
}
3636
```
3737

38-
### `DelayController`
38+
### DelayController
3939

4040
We don't provide a way to define custom dispatching strategies that support virtual time.
4141
That said, we significantly enhanced this mechanism:
@@ -48,7 +48,7 @@ That said, we significantly enhanced this mechanism:
4848
If you have a use case for `DelayController` that's not covered by what we provide, please tell us about it in the issue
4949
tracker.
5050

51-
### `TestCoroutineScope`
51+
### TestCoroutineScope
5252

5353
This scope couldn't be meaningfully used in tandem with `runBlockingTest`: according to the definition of
5454
`TestCoroutineScope.runBlockingTest`, only the scope's `coroutineContext` is used.
@@ -142,7 +142,7 @@ Significant differences of `runTest` from `runBlockingTest` are each given a sec
142142

143143
No action on your part is required, other than replacing `runBlocking` with `runTest` as well.
144144

145-
### It uses `StandardTestDispatcher` by default, not `TestCoroutineDispatcher`.
145+
### It uses StandardTestDispatcher by default, not TestCoroutineDispatcher.
146146

147147
By now, calls to `pauseDispatcher` and `resumeDispatcher` should be purged from the code base, so only the unpaused
148148
variant of `TestCoroutineDispatcher` should be used.
@@ -304,7 +304,7 @@ fun testFoo() = runTest {
304304
}
305305
```
306306

307-
### Only a single call to `runTest` is permitted per test.
307+
### Only a single call to runTest is permitted per test.
308308

309309
In order to work on JS, only a single call to `runTest` must happen during one test, and its result must be returned
310310
immediately:
@@ -323,7 +323,7 @@ When used only on the JVM, `runTest` will work when called repeatedly, but this
323323
Please only call `runTest` once per test, and if for some reason you can't, please tell us about in on the issue
324324
tracker.
325325

326-
### It uses `TestScope`, not `TestCoroutineScope`, by default.
326+
### It uses TestScope, not TestCoroutineScope, by default.
327327

328328
There is a `runTestWithLegacyScope` method that allows migrating from `runBlockingTest` to `runTest` before migrating
329329
from `TestCoroutineScope` to `TestScope`, if exactly the `TestCoroutineScope` needs to be passed somewhere else and

kotlinx-coroutines-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ fun testEagerlyEnteringSomeChildCoroutines() = runTest(UnconfinedTestDispatcher(
374374
}
375375
```
376376

377-
### Using `withTimeout` inside `runTest`
377+
### Using withTimeout inside runTest
378378

379379
Timeouts are also susceptible to time control, so the code below will immediately finish.
380380

0 commit comments

Comments
 (0)