precept 0.3.0

A testing utility for fuzzing and fault injection to discover erroneous and interesting states.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{Dispatch, Event};

pub struct NoopDispatch;

impl NoopDispatch {
    pub fn new_boxed() -> Box<dyn Dispatch> {
        Box::new(Self)
    }
}

impl Dispatch for NoopDispatch {
    fn emit(&self, _event: Event) {}

    fn random(&self) -> u64 {
        rand::random()
    }
}