pub struct MonteCarloConfig {
pub tier: TestTier,
pub seed_start: u64,
pub seed_end: u64,
pub batch_timeout: u64,
pub confidence: f64,
pub frames_per_sim: usize,
}Expand description
Monte Carlo test configuration
Configures how many random seeds and frames to run in simulation tests.
§Example
use jugar_web::simulation::{MonteCarloConfig, TestTier};
let config = MonteCarloConfig::smoke();
assert_eq!(config.tier, TestTier::Smoke);
assert_eq!(config.iterations(), 1);
let regression = MonteCarloConfig::regression();
assert_eq!(regression.iterations(), 50);Fields§
§tier: TestTierTest tier (determines iteration count)
seed_start: u64RNG seed range start
seed_end: u64RNG seed range end
batch_timeout: u64Timeout per batch (seconds)
confidence: f64Confidence level (0.0-1.0)
frames_per_sim: usizeFrames per simulation
Implementations§
Source§impl MonteCarloConfig
impl MonteCarloConfig
Sourcepub fn regression() -> Self
pub fn regression() -> Self
Regression test configuration (Tier 2)
Sourcepub fn iterations(&self) -> usize
pub fn iterations(&self) -> usize
Number of iterations (seeds)
Trait Implementations§
Source§impl Clone for MonteCarloConfig
impl Clone for MonteCarloConfig
Source§fn clone(&self) -> MonteCarloConfig
fn clone(&self) -> MonteCarloConfig
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 MonteCarloConfig
impl Debug for MonteCarloConfig
Auto Trait Implementations§
impl Freeze for MonteCarloConfig
impl RefUnwindSafe for MonteCarloConfig
impl Send for MonteCarloConfig
impl Sync for MonteCarloConfig
impl Unpin for MonteCarloConfig
impl UnwindSafe for MonteCarloConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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