Commit 9afbe80
docs/test(cel-parser): add WHY comment and strengthen span-diagnostics test
Finding 1: add WHY comment in FormatRustcStyle for anyhow::Error explaining
that SpanContext is the outermost anyhow context layer, so source() is needed
to recover the actual op error message rather than the span location string.
Finding 2: strengthen runtime_error_carries_span_context test with an exact
line assertion (line == 1) and end-to-end rendering assertions that verify the
output contains "arithmetic overflow" and a caret marker. Note: proc_macro2
with span-locations in test mode assigns column 0 to all tokens when parsing
from a string, so the column range assertion from the review spec was replaced
with rendering assertions that provide the meaningful coverage requested.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 289e39e commit 9afbe80
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
558 | 561 | | |
559 | 562 | | |
560 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
1501 | | - | |
| 1501 | + | |
| 1502 | + | |
1502 | 1503 | | |
1503 | 1504 | | |
1504 | 1505 | | |
| |||
1507 | 1508 | | |
1508 | 1509 | | |
1509 | 1510 | | |
1510 | | - | |
1511 | | - | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
1512 | 1525 | | |
1513 | 1526 | | |
0 commit comments