Struct fuzzcheck::builder::SensorAndPoolBuilder
source · [−]pub struct SensorAndPoolBuilder<S, P> where
S: Sensor,
P: CompatibleWithObservations<S::Observations>, { /* private fields */ }
Expand description
A builder to create a sensor and pool that can be given as argument to
FuzzerBuilder3::sensor_and_pool
.
Usage
use fuzzcheck::builder::basic_sensor_and_pool;
let (sensor, pool) = basic_sensor_and_pool()
.find_most_diverse_set_of_test_cases(10) // optional
.find_test_cases_repeatedly_hitting_coverage_counters() // optional
.finish(); // mandatory
Implementations
sourceimpl<S, P> SensorAndPoolBuilder<S, P> where
S: Sensor,
P: CompatibleWithObservations<S::Observations>,
impl<S, P> SensorAndPoolBuilder<S, P> where
S: Sensor,
P: CompatibleWithObservations<S::Observations>,
sourceimpl SensorAndPoolBuilder<BasicSensor, BasicPool>
impl SensorAndPoolBuilder<BasicSensor, BasicPool>
sourcepub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> SensorAndPoolBuilder<DiverseSensor, BasicAndDiversePool>
pub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> SensorAndPoolBuilder<DiverseSensor, BasicAndDiversePool>
Augment the current pool such that it also tries to find a fixed-length set of test cases which, together, trigger the most code coverage.
Argument
size
: the size of the set of test cases to find
sourcepub fn find_test_cases_repeatedly_hitting_coverage_counters(
self
) -> SensorAndPoolBuilder<BasicAndMaxHitsSensor, BasicAndMaxHitsPool>
pub fn find_test_cases_repeatedly_hitting_coverage_counters(
self
) -> SensorAndPoolBuilder<BasicAndMaxHitsSensor, BasicAndMaxHitsPool>
Augment the current pool such that it also tries to find test cases repeatedly hitting the same regions of code.
sourceimpl SensorAndPoolBuilder<DiverseSensor, BasicAndDiversePool>
impl SensorAndPoolBuilder<DiverseSensor, BasicAndDiversePool>
sourcepub fn find_test_cases_repeatedly_hitting_coverage_counters(
self
) -> SensorAndPoolBuilder<DiverseAndMaxHitsSensor, BasicAndDiverseAndMaxHitsPool>
pub fn find_test_cases_repeatedly_hitting_coverage_counters(
self
) -> SensorAndPoolBuilder<DiverseAndMaxHitsSensor, BasicAndDiverseAndMaxHitsPool>
Augment the current pool such that it also tries to find test cases repeatedly hitting the same regions of code.
Auto Trait Implementations
impl<S, P> RefUnwindSafe for SensorAndPoolBuilder<S, P> where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P> Send for SensorAndPoolBuilder<S, P> where
P: Send,
S: Send,
impl<S, P> Sync for SensorAndPoolBuilder<S, P> where
P: Sync,
S: Sync,
impl<S, P> Unpin for SensorAndPoolBuilder<S, P> where
P: Unpin,
S: Unpin,
impl<S, P> UnwindSafe for SensorAndPoolBuilder<S, P> where
P: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more