pub struct BenchmarkGateReport {
pub suite_id: String,
pub runner: String,
pub passed: usize,
pub failed: usize,
pub minimum_pass_count: usize,
}Expand description
Summary from the benchmark gate that must pass before a learned rule can be adopted.
Fields§
§suite_id: StringBenchmark suite id, normally issue_362_multilingual_coding_modification.
runner: StringLocal/CI command that produced the report.
passed: usizePassing case count from the gate run.
failed: usizeFailing case count from the gate run.
minimum_pass_count: usizeMinimum pass count recorded by the ratchet.
Implementations§
Source§impl BenchmarkGateReport
impl BenchmarkGateReport
Sourcepub fn new(
suite_id: impl Into<String>,
runner: impl Into<String>,
passed: usize,
failed: usize,
minimum_pass_count: usize,
) -> Self
pub fn new( suite_id: impl Into<String>, runner: impl Into<String>, passed: usize, failed: usize, minimum_pass_count: usize, ) -> Self
Construct a gate report from explicit counts.
Sourcepub fn issue_362_from_counts(passed: usize, failed: usize) -> Self
pub fn issue_362_from_counts(passed: usize, failed: usize) -> Self
Build an issue #362 gate report using the checked-in benchmark manifest.
The caller supplies the latest pass/fail counts; the suite id, runner,
and ratchet floor are read from data/benchmarks/coding-modification-suite.lino.
Sourcepub const fn permits_adoption(&self) -> bool
pub const fn permits_adoption(&self) -> bool
Whether the gate allows learned-rule adoption.
Trait Implementations§
Source§impl Clone for BenchmarkGateReport
impl Clone for BenchmarkGateReport
Source§fn clone(&self) -> BenchmarkGateReport
fn clone(&self) -> BenchmarkGateReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BenchmarkGateReport
impl Debug for BenchmarkGateReport
impl Eq for BenchmarkGateReport
Source§impl PartialEq for BenchmarkGateReport
impl PartialEq for BenchmarkGateReport
impl StructuralPartialEq for BenchmarkGateReport
Auto Trait Implementations§
impl Freeze for BenchmarkGateReport
impl RefUnwindSafe for BenchmarkGateReport
impl Send for BenchmarkGateReport
impl Sync for BenchmarkGateReport
impl Unpin for BenchmarkGateReport
impl UnsafeUnpin for BenchmarkGateReport
impl UnwindSafe for BenchmarkGateReport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.