Struct MaximiseEachCounterPool

Source
pub struct MaximiseEachCounterPool { /* private fields */ }
Expand description

A pool that tries to find test cases maximizing the value of each counter of a sensor.

It is compatible with the following sensors:

Implementations§

Source§

impl MaximiseEachCounterPool

Source

pub fn new(name: &str, size: usize) -> Self

Trait Implementations§

Source§

impl<O> CompatibleWithObservations<O> for MaximiseEachCounterPool
where for<'a> &'a O: IntoIterator<Item = &'a (usize, u64)>,

Source§

fn process( &mut self, input_id: PoolStorageIndex, observations: &O, complexity: f64, ) -> Vec<CorpusDelta>

Source§

impl Debug for MaximiseEachCounterPool

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Pool for MaximiseEachCounterPool

Source§

type Stats = MaximiseEachCounterPoolStats

Statistics about the pool to be printed to the terminal as the fuzzer is running and saved to a .csv file after the run
Source§

fn stats(&self) -> Self::Stats

The pool’s statistics
Source§

fn get_random_index(&mut self) -> Option<PoolStorageIndex>

Get the index of a random test case. Read more
Source§

fn weight(&self) -> f64

Gives the relative importance of the pool. It must be a positive number. Read more
Source§

impl SaveToStatsFolder for MaximiseEachCounterPool

Source§

fn save_to_stats_folder(&self) -> Vec<(PathBuf, Vec<u8>)>

Save information about self to the stats folder Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P> PoolExt for P
where P: Pool,

Source§

fn and<P, SM>( self, p: P, override_weight: Option<f64>, _sensor_marker: SM, ) -> AndPool<Self, P, SM>
where P: Pool,

Create an AndPool from both Self and P. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.