Skip to main content

Module testing

Module testing 

Source
Expand description

An in-memory ByteSource, for tests that want to hand a parser exact bytes rather than build a file.

Behind cfg(test) for this crate’s own tests and behind the fuzzing feature for fuzz/, which is a separate crate and cannot see the first. Not part of the stable surface either way: a caller with bytes in hand wants Cursor, not this.

Structs§

MemorySource