[][src]Trait solana_libra_fuzzer::FuzzTargetImpl

pub trait FuzzTargetImpl: Sync + Send + Debug {
    fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn generate(&self, runner: &mut TestRunner) -> Vec<u8>;
fn fuzz(&self, data: &[u8]); }

Implementation for a particular target of a fuzz operation.

Required methods

fn name(&self) -> &'static str

The name of the fuzz target.

fn description(&self) -> &'static str

A description for this target.

fn generate(&self, runner: &mut TestRunner) -> Vec<u8>

Generate a new example for this target to store in the corpus.

fn fuzz(&self, data: &[u8])

Fuzz the target with this data. The fuzzer tests for panics or OOMs with this method.

Loading content...

Implementors

Loading content...