Struct fuzzcheck::builder::CodeCoverageSensorAndPoolBuilder [−][src]
pub struct CodeCoverageSensorAndPoolBuilder<P> where
P: CompatibleWithSensor<CodeCoverageSensor>, { /* fields omitted */ }
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
Obtain the sensor and pool from the builder
pub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> CodeCoverageSensorAndPoolBuilder<BasicAndDiversePool>
pub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> CodeCoverageSensorAndPoolBuilder<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
Augment the current pool such that it also tries to find test cases repeatedly hitting the same regions of code.
Augment the current pool such that it also tries to find test cases repeatedly hitting the same regions of code.
pub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> CodeCoverageSensorAndPoolBuilder<BasicAndDiverseAndMaxHitsPool>
pub fn find_most_diverse_set_of_test_cases(
self,
size: usize
) -> CodeCoverageSensorAndPoolBuilder<BasicAndDiverseAndMaxHitsPool>
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