Skip to main content

write_corpus

Function write_corpus 

Source
pub fn write_corpus() -> Result<usize>
Expand description

Write seeds to corpus_dir, one file per seed.

The corpus is generated rather than hand-written so its provenance is reproducible, the way scripts/import-rfc4475-corpus.sh makes the parser corpus reproducible from the RFC. What makes that worth anything is the test on the other side: the_committed_corpus_is_exactly_the_seed_programs fails if the two ever disagree.