prost icon indicating copy to clipboard operation
prost copied to clipboard

Add test for split varint decoding

Open jaskij opened this issue 4 years ago • 0 comments

An additional test to force testing non-contguous chunks in Buf. This is necessary, since this edge case is, theoretically, supported by the Buf trait.

Additionally, this also serves to test the slow path decoding.

Although, as https://github.com/tokio-rs/bytes/issues/474 shows, this is probably a low-priority case.

Fixes #559

jaskij avatar Nov 03 '21 22:11 jaskij