pub struct TestGeneratorOptions {
pub test_private: bool,
pub edge_cases: bool,
pub use_mocks: bool,
pub data_driven: bool,
pub perf_tests: bool,
pub expected_values: HashMap<String, String>,
pub perf_thresholds: HashMap<String, f64>,
}Expand description
Configuration options for test generation
Controls various aspects of test generation including coverage, performance testing, and mock usage.
Fields§
§test_private: boolGenerate tests for private methods
edge_cases: boolGenerate edge case tests
use_mocks: boolGenerate mock objects for dependencies
data_driven: boolGenerate data-driven tests
perf_tests: boolGenerate performance tests
expected_values: HashMap<String, String>Expected return values for generated tests
perf_thresholds: HashMap<String, f64>Performance thresholds in seconds for benchmarks
Trait Implementations§
Source§impl Clone for TestGeneratorOptions
impl Clone for TestGeneratorOptions
Source§fn clone(&self) -> TestGeneratorOptions
fn clone(&self) -> TestGeneratorOptions
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 moreSource§impl Debug for TestGeneratorOptions
impl Debug for TestGeneratorOptions
Source§impl Default for TestGeneratorOptions
impl Default for TestGeneratorOptions
Source§fn default() -> TestGeneratorOptions
fn default() -> TestGeneratorOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestGeneratorOptions
impl RefUnwindSafe for TestGeneratorOptions
impl Send for TestGeneratorOptions
impl Sync for TestGeneratorOptions
impl Unpin for TestGeneratorOptions
impl UnsafeUnpin for TestGeneratorOptions
impl UnwindSafe for TestGeneratorOptions
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