pub struct TestCaseGenerator { /* private fields */ }Expand description
Test case generator for fuzzing and random testing
Implementations§
Source§impl TestCaseGenerator
impl TestCaseGenerator
Sourcepub fn new(config: TestConfig, seed: Option<u64>) -> Self
pub fn new(config: TestConfig, seed: Option<u64>) -> Self
Create a new test case generator
Sourcepub fn generate_random_text(&mut self) -> String
pub fn generate_random_text(&mut self) -> String
Generate random text for testing
Sourcepub fn generate_unicode_text(&mut self) -> String
pub fn generate_unicode_text(&mut self) -> String
Generate Unicode text for testing
Sourcepub fn generate_edge_case_text(&mut self) -> String
pub fn generate_edge_case_text(&mut self) -> String
Generate edge case text
Sourcepub fn generate_malformed_input(&mut self) -> Vec<u8> ⓘ
pub fn generate_malformed_input(&mut self) -> Vec<u8> ⓘ
Generate malformed input for fuzzing
Auto Trait Implementations§
impl Freeze for TestCaseGenerator
impl RefUnwindSafe for TestCaseGenerator
impl Send for TestCaseGenerator
impl Sync for TestCaseGenerator
impl Unpin for TestCaseGenerator
impl UnsafeUnpin for TestCaseGenerator
impl UnwindSafe for TestCaseGenerator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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