#[non_exhaustive]pub struct Gate {
pub pass_rate: f64,
pub pass_hat_k: Option<f64>,
pub k: Option<u32>,
pub baseline: Tolerance,
}Expand description
The CI gate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pass_rate: f64Minimum fraction of passing test runs (0..=1, every trial counts). Default 1.0: every test must pass.
pass_hat_k: Option<f64>Minimum mean pass^k over the test cases (with --trials).
k: Option<u32>k of pass@k and pass^k (default: the number of trials).
baseline: ToleranceTolerances when comparing against --baseline.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gate
impl<'de> Deserialize<'de> for Gate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Gate
Auto Trait Implementations§
impl Forget for Gate
impl Freeze for Gate
impl Move for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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