pub struct SmokeTestConfig {
pub fixture_path: PathBuf,
pub timeout: Duration,
pub expected_iterations: Option<u32>,
pub expected_termination: Option<String>,
}Expand description
Configuration for a smoke test run.
Fields§
§fixture_path: PathBufPath to the JSONL fixture file.
timeout: DurationMaximum time to run before timing out.
expected_iterations: Option<u32>Expected number of iterations (for validation, optional).
expected_termination: Option<String>Expected termination reason (for validation, optional).
Implementations§
Source§impl SmokeTestConfig
impl SmokeTestConfig
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the timeout for this smoke test.
Sourcepub fn with_expected_iterations(self, iterations: u32) -> Self
pub fn with_expected_iterations(self, iterations: u32) -> Self
Sets expected iterations for validation.
Sourcepub fn with_expected_termination(self, reason: impl Into<String>) -> Self
pub fn with_expected_termination(self, reason: impl Into<String>) -> Self
Sets expected termination reason for validation.
Trait Implementations§
Source§impl Clone for SmokeTestConfig
impl Clone for SmokeTestConfig
Source§fn clone(&self) -> SmokeTestConfig
fn clone(&self) -> SmokeTestConfig
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 SmokeTestConfig
impl RefUnwindSafe for SmokeTestConfig
impl Send for SmokeTestConfig
impl Sync for SmokeTestConfig
impl Unpin for SmokeTestConfig
impl UnwindSafe for SmokeTestConfig
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