pub enum CoverageRule {
MinCallsPerTool {
min: u64,
},
NoUncalledTools,
PercentCalled {
min_percent: f64,
},
}Expand description
Coverage validation rules for state-machine runs.
Variants§
MinCallsPerTool
Require a minimum number of successful calls per tool.
NoUncalledTools
Require that all callable tools are called at least once.
PercentCalled
Require a minimum percentage of callable tools to be called.
Implementations§
Source§impl CoverageRule
impl CoverageRule
Sourcepub fn min_calls_per_tool(min: u64) -> Self
pub fn min_calls_per_tool(min: u64) -> Self
Helper to enforce minimum calls per tool.
Sourcepub fn no_uncalled_tools() -> Self
pub fn no_uncalled_tools() -> Self
Helper to enforce no uncalled tools.
Sourcepub fn percent_called(min_percent: f64) -> Self
pub fn percent_called(min_percent: f64) -> Self
Helper to enforce minimum percentage of tools called.
Trait Implementations§
Source§impl Clone for CoverageRule
impl Clone for CoverageRule
Source§fn clone(&self) -> CoverageRule
fn clone(&self) -> CoverageRule
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 CoverageRule
impl Debug for CoverageRule
Source§impl<'de> Deserialize<'de> for CoverageRule
impl<'de> Deserialize<'de> for CoverageRule
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
Source§impl JsonSchema for CoverageRule
impl JsonSchema for CoverageRule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CoverageRule
impl RefUnwindSafe for CoverageRule
impl Send for CoverageRule
impl Sync for CoverageRule
impl Unpin for CoverageRule
impl UnwindSafe for CoverageRule
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