pub struct SwarmGenerator { /* private fields */ }Expand description
Swarm testing generator
Generates programs using random feature subsets per batch, implementing the swarm testing strategy from Groce et al.
Implementations§
Source§impl SwarmGenerator
impl SwarmGenerator
Sourcepub fn generate_batch(&mut self, batch_size: usize) -> Vec<GeneratedCode>
pub fn generate_batch(&mut self, batch_size: usize) -> Vec<GeneratedCode>
Generate a batch of programs with random feature subset
Sourcepub fn generate(
&mut self,
total_count: usize,
batch_size: usize,
) -> Vec<GeneratedCode>
pub fn generate( &mut self, total_count: usize, batch_size: usize, ) -> Vec<GeneratedCode>
Generate multiple batches worth of programs
Sourcepub fn stats(&self) -> &SwarmStats
pub fn stats(&self) -> &SwarmStats
Get generation statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwarmGenerator
impl RefUnwindSafe for SwarmGenerator
impl Send for SwarmGenerator
impl Sync for SwarmGenerator
impl Unpin for SwarmGenerator
impl UnsafeUnpin for SwarmGenerator
impl UnwindSafe for SwarmGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more