c6172db9
test(gozstd-purego): expand shim coverage (interop, concurrency, edges)
Add to the pure-Go zstd shim's suite: reverse interop (shim output decoded by the libzstd `zstd` CLI, plain and with a dictionary); the dst-append contract for all four Compress/Decompress[Dict] funcs (dolt passes non-empty buffers); edge cases (empty, one-byte, incompressible random, 4 MiB random, large text); race-clean concurrency over the shared plain coders and a shared DDict; and error paths (garbage input errors, empty input is a documented benign no-op, wrong-dictionary decode errors rather than returning wrong bytes). All pass under -race.
Eugene Blikh <bigbes@gmail.com> — 2026-07-19 07:20:05 UTC
Commit c6172db991591e8bf432e27c66b5ce640076fe68 —
view raw patch
Parent(s):
8ed47c67
| File | Status | + | − |
|---|---|---|---|
third_party/gozstd-purego/gozstd_test.go
|
M | +233 |