build_corpus

Function build_corpus 

Source
pub fn build_corpus<PB: ProtocolBehavior>(
    put_registry: &PutRegistry<PB>,
    puts: &[PutDescriptor],
    corpus_list: &[String],
) -> Vec<(Trace<PB::ProtocolTypes>, &'static str)>
Expand description

Build the seeds for the requested corpus_list, restricted to the intersection of what every PUT in puts supports.

Each named corpus is produced per PUT via its CorpusBuilder; a seed is kept only if it is present for every requested PUT (matched by name). When the same seed name appears in more than one requested corpus, the first occurrence (in corpus_list order) wins. Traces are PUT-independent, so the trace built for the first PUT is used. ALL_CORPORA ("all") expands to every corpus registered via ProtocolBehavior::corpus_registry, in registry order.