aboutsummaryrefslogtreecommitdiff
path: root/internal/flatex/decompress_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-25 08:00:00 +0800
committerGravatar Runxi Yu2025-11-25 08:00:00 +0800
commit84e32bfc60150fdd216166606966d6ebebbf3ac7 (patch)
treeff4c55ae80adbf23ebec79c7c70c180c11dd618f /internal/flatex/decompress_test.go
parentzlibx: Remove unused cruft (diff)
signatureNo signature
flatex: Remove unused cruft
Diffstat (limited to 'internal/flatex/decompress_test.go')
-rw-r--r--internal/flatex/decompress_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/flatex/decompress_test.go b/internal/flatex/decompress_test.go
index c991ea74..e53a6581 100644
--- a/internal/flatex/decompress_test.go
+++ b/internal/flatex/decompress_test.go
@@ -22,13 +22,13 @@ func compressDeflate(t *testing.T, payload []byte) []byte {
return buf.Bytes()
}
-func TestDecompress(t *testing.T) {
+func TestDecompressSized(t *testing.T) {
payload := bytes.Repeat([]byte("golang"), 32)
compressed := compressDeflate(t, payload)
- out, _, err := Decompress(compressed)
+ out, _, err := DecompressSized(compressed, 0)
if err != nil {
- t.Fatalf("Decompress: %v", err)
+ t.Fatalf("DecompressSized: %v", err)
}
defer out.Release()