Struct fuzzcheck::sensors_and_pools::SimplestToActivateCounterPool [−][src]
pub struct SimplestToActivateCounterPool {
pub name: String,
pub average_complexity: f64,
pub total_score: f64,
pub ranked_inputs: FenwickTree,
// some fields omitted
}
Expand description
A pool that tries to find a minimal test case activating each sensor counter.
It is compatible with any sensor whose observation handler
is &'a mut dyn FnMut((usize, u64))
. In particular, it is recommended to use it
with the CodeCoverageSensor
.
Fields
name: String
average_complexity: f64
total_score: f64
ranked_inputs: FenwickTree
Implementations
Trait Implementations
type Observation = (usize, u64)
type ObservationState = UniqueCoveragePoolObservationState
fn observe(
&mut self,
(index, _counter): &Self::Observation,
input_complexity: f64,
state: &mut Self::ObservationState
)
fn is_interesting(
&self,
observation_state: &Self::ObservationState,
_input_complexity: f64
) -> bool
fn add(
&mut self,
data: PoolStorageIndex,
complexity: f64,
observation_state: Self::ObservationState
) -> Vec<CorpusDelta>ⓘ
type Stats = UniqueCoveragePoolStats
type Stats = UniqueCoveragePoolStats
Statistics about the pool to be printed to the terminal as the fuzzer is running and saved to a .csv file after the run Read more
Get the index of a random test case. Read more
Mark a certain test case as a dead end. Read more