Add CompressStream double-close regression test (closes #35) #36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "add-compressstream-regression-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds regression tests for the CompressStream double-close fix (issue #28, PR #33).
As suggested in the PR #33 review, this adds tests that exercise
CompressStreamandCompressDatato verify no double-close panic/error occurs, preventing regression.Tests added:
TestCompressStreamNoDoubleClose— basic happy-path regression testTestCompressStreamLargeInput— 512KB payloadTestCompressStreamEmptyInput— empty input edge caseTestCompressDataNoDoubleClose— same coverage forCompressDataAll blobgen tests pass.
go test -v ./internal/blobgen/output:Note:
make testfails due to pre-existing build errors ininternal/vaultikandinternal/cli(unrelated to this PR).Checkout
From your project repository, check out a new branch and test the changes.