pub struct Coverage {
pub rules: usize,
pub blocking: usize,
pub advisory: usize,
pub named_proof: usize,
pub artifacts_present: usize,
pub runnable: usize,
pub recorded: usize,
pub passing: usize,
pub gated: usize,
pub mechanism_only: usize,
pub review_only: usize,
pub satisfied: usize,
}Expand description
How much of the rule corpus carries each part of a proof.
Every number here is counted from the tree. Nothing in this struct may be written down anywhere else: a hardcoded rule count is the defect this repository keeps rediscovering.
§Example
Every number is counted from the tree; an empty corpus counts zero rather than
reading as complete, which is what Coverage::default is for.
use majordomus_cli::rules::Coverage;
let c = Coverage::default();
assert_eq!(c.rules, 0);
assert_eq!(c.review_only, 0);Fields§
§rules: usizeRules discovered.
blocking: usizeOf those, blocking.
advisory: usizeOf those, advisory.
named_proof: usizeRules naming a validator or at least one test.
artifacts_present: usizeRules every one of whose named paths is in the tree.
runnable: usizeRules at least one of whose tests a runner owns.
recorded: usizeRules every one of whose tests has a recorded run.
passing: usizeRules whose recorded runs all passed.
gated: usizeRules some CI gate runs.
mechanism_only: usizeRules whose only executable proof is a gate: a mechanism that refuses violations,
with no recorded verdict behind it. Counted apart from passing so that the two
are never read as one number.
review_only: usizeRules that declare, with a reason, that a reader enforces them. Counted apart from every executable mode: this number going up is governance getting weaker, and a summary that folded it into a total would hide exactly that.
satisfied: usizeRules whose state their class can live with.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Coverage
impl<'de> Deserialize<'de> for Coverage
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>,
impl Eq for Coverage
Source§impl JsonSchema for Coverage
impl JsonSchema for Coverage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Coverage
Auto Trait Implementations§
impl Freeze for Coverage
impl RefUnwindSafe for Coverage
impl Send for Coverage
impl Sync for Coverage
impl Unpin for Coverage
impl UnsafeUnpin for Coverage
impl UnwindSafe for Coverage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.