pub enum ExpectVerdict {
Met,
NotMet,
Impaired,
}Expand description
The zenctl expect verdict (#160). Three states, exit-coded 0/1/2: a CI
assertion that cannot tell “condition not met” from “I could not observe
properly” violates O4/O6 exactly where nobody reads logs carefully.
Variants§
Met
The expectation held within the window.
NotMet
It did not, on a clean observation: conclusive positive evidence, or a shortfall counted with zero drops.
Impaired
The observation cannot carry the claim (drops under a completeness claim, or a shortfall the dropped samples could have filled).
Implementations§
Source§impl ExpectVerdict
impl ExpectVerdict
Sourcepub fn to_judgement(self) -> Judgement
pub fn to_judgement(self) -> Judgement
The Judgement mapping (RFC 13,
v1.24). The judged claim is the finding — “the expectation was
violated” — so Met is the established-clean pole:
| verdict | judgement | exit (RFC 13 = this family’s own contract) |
|---|---|---|
NotMet | Established (finding) | 1 |
Met | NotEstablished (clean) | 0 |
Impaired | Unobservable | 2 |
Trait Implementations§
Source§impl Clone for ExpectVerdict
impl Clone for ExpectVerdict
Source§fn clone(&self) -> ExpectVerdict
fn clone(&self) -> ExpectVerdict
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExpectVerdict
Source§impl Debug for ExpectVerdict
impl Debug for ExpectVerdict
impl Eq for ExpectVerdict
Source§impl From<Judgement> for ExpectVerdict
The inverse of ExpectVerdict::to_judgement — what lets expect fold
a judge’s answer straight into its verdict without hand-mapping. Both
unestablished poles are Impaired: an assertion that was not (or could
not be) observed is not met and not violated.
impl From<Judgement> for ExpectVerdict
The inverse of ExpectVerdict::to_judgement — what lets expect fold
a judge’s answer straight into its verdict without hand-mapping. Both
unestablished poles are Impaired: an assertion that was not (or could
not be) observed is not met and not violated.
Source§fn from(j: Judgement) -> ExpectVerdict
fn from(j: Judgement) -> ExpectVerdict
Source§impl PartialEq for ExpectVerdict
impl PartialEq for ExpectVerdict
Source§impl Serialize for ExpectVerdict
impl Serialize for ExpectVerdict
impl StructuralPartialEq for ExpectVerdict
Auto Trait Implementations§
impl Freeze for ExpectVerdict
impl RefUnwindSafe for ExpectVerdict
impl Send for ExpectVerdict
impl Sync for ExpectVerdict
impl Unpin for ExpectVerdict
impl UnsafeUnpin for ExpectVerdict
impl UnwindSafe for ExpectVerdict
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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