Commit f15ef13
refactor(decode): address review — trim test sweep, guard --hash
From /pr-review + /simplify:
- Reduce the differential test's random sweep 1M -> 200k. The 1/2-byte fast
paths are already proven exhaustively and the 3+ byte path is original code,
so the sweep is supplementary; this keeps the ASan/Debug ctest ~1s.
- Reject --hash without --decode-replay. The fingerprint pass lives inside the
decode-replay block, so --hash alone silently printed nothing — a footgun for
a correctness gate. Now errors clearly.
ctest green; decoded-output fingerprint unchanged (0x75b0cc1fbc0457e9).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8e2d726 commit f15ef13
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
260 | 263 | | |
261 | | - | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
293 | 299 | | |
294 | 300 | | |
295 | 301 | | |
| |||
0 commit comments