pub struct InputFuzzer { /* private fields */ }Expand description
Input fuzzer for Monte Carlo game testing
Generates random but valid game inputs for stress testing.
Implementations§
Source§impl InputFuzzer
impl InputFuzzer
Sourcepub const fn with_config(seed: Seed, config: FuzzerConfig) -> Self
pub const fn with_config(seed: Seed, config: FuzzerConfig) -> Self
Create a fuzzer with custom configuration
Sourcepub fn generate_valid_inputs(&mut self) -> Vec<InputEvent>
pub fn generate_valid_inputs(&mut self) -> Vec<InputEvent>
Generate a batch of valid random inputs
Sourcepub const fn inputs_generated(&self) -> u64
pub const fn inputs_generated(&self) -> u64
Get the total number of inputs generated
Sourcepub const fn reset(&mut self, seed: Seed)
pub const fn reset(&mut self, seed: Seed)
Reset the fuzzer to its initial state with a new seed
Sourcepub const fn config(&self) -> &FuzzerConfig
pub const fn config(&self) -> &FuzzerConfig
Get the current configuration
Trait Implementations§
Source§impl Clone for InputFuzzer
impl Clone for InputFuzzer
Source§fn clone(&self) -> InputFuzzer
fn clone(&self) -> InputFuzzer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InputFuzzer
impl RefUnwindSafe for InputFuzzer
impl Send for InputFuzzer
impl Sync for InputFuzzer
impl Unpin for InputFuzzer
impl UnsafeUnpin for InputFuzzer
impl UnwindSafe for InputFuzzer
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