Commit 44096e6
committed
test(sarif): cover dry-run SARIF write-error path in fix
Add TestReportFixResultTo_DryRunSARIFWriteErrorReturns2 to exercise the
early-return branch (lines 369-370 in fix.go) when formatDiagnosticsTo
fails mid-encoding because the 64 KiB stderr buffer overflows.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hz6AviY41wKUmGY2sTj5KJ1 parent 46572ea commit 44096e6
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2182 | 2182 | | |
2183 | 2183 | | |
2184 | 2184 | | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
2185 | 2195 | | |
2186 | 2196 | | |
2187 | 2197 | | |
| |||
0 commit comments