Skip to content

Add unit tests of the different flush kinds #498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Jul 20, 2025

This PR adds tests of the various flush kinds to ensure that all backends implement them consistently. The cases are carefully constructed so that even quite different backend implementations are likely to produce the expected output. In particular, it counts on the encoder detecting when the input is/isn't compressible and writing either compressed or stored blocks accordingly.

Tests pass for me with the zlib, zlib-ng, zlib-rs and cloudflare_zlib backends. The miniz_oxide backend requires Frommi/miniz_oxide#179 as otherwise it treats partial flushes as "no flush" (!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant