From 390f3b2daee0f81d97c4451015d08758418eba34 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 23 Jul 2026 22:18:06 +0900 Subject: internal/pkg: decompress zstd streams This uses internal/zstd until compress/zstd becomes available. Signed-off-by: Ophestra --- internal/zstd/testdata/README | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 internal/zstd/testdata/README (limited to 'internal/zstd/testdata/README') diff --git a/internal/zstd/testdata/README b/internal/zstd/testdata/README new file mode 100644 index 00000000..1a6dbb3a --- /dev/null +++ b/internal/zstd/testdata/README @@ -0,0 +1,10 @@ +This directory holds files for testing zstd.NewReader. + +Each one is a Zstandard compressed file named as hash.arbitrary-name.zst, +where hash is the first eight hexadecimal digits of the SHA256 hash +of the expected uncompressed content: + + zstd -d < 1890a371.gettysburg.txt-100x.zst | sha256sum | head -c 8 + 1890a371 + +The test uses hash value to verify decompression result. -- cgit v1.3.1