CorpusBuilder

Type Alias CorpusBuilder 

Source
pub type CorpusBuilder<PB> = fn(&dyn Factory<PB>) -> Vec<(Trace<<PB as ProtocolBehavior>::ProtocolTypes>, &'static str)>;
Expand description

A function producing the seeds of one named corpus for a single PUT factory.

It returns the (trace, name) seeds that the given PUT supports (a PUT that lacks the capabilities a seed needs should simply omit it). Registered per protocol through ProtocolBehavior::corpus_registry.