Commit be89f23
[analyzer] Fix output generation upon test failure to use camelCase.
When `GatheringDiagnosticListener.assertErrors` detects a test
failure, it outputs a suggestion for how to change the test
expectations to match the current behavior.
Since error code constants are in `camelCase` now, but
`DiagnosticCode.uniqueName` still takes the form
`ClassName.SCREAMING_CAPS` or `ClassName.snake_case`, this logic needs
to be updated to convert the text after the `.` to `camelCase`.
Change-Id: I6a6a696478e0443aab5184ac3331af9aac29a9aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445407
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 315009e commit be89f23
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
0 commit comments