rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
929 stars 163 forks source link

Move blocked_partial_header_read test to read module #345

Closed jongiddy closed 1 year ago

jongiddy commented 1 year ago

The moved test checks the behavior of read::GzDecoder so fits in the read module. The BlockingCursor support code is duplicated rather than being imported from the bufread module, with the expectation that the bufread code will be removed when #323 is merged.

This implements part of the change from #323 with the aim to make that PR simpler.