pub enum ClaimKind {
Example,
Property,
Theorem,
Axiom,
AdmittedAssumption,
Component,
}Expand description
The KIND of a claim — the top-level partition the inventory reports over.
Variants§
Example
A ## Test/## Example block asserted with Expect/ExpectOutput/
ExpectFail — finite testing of concrete cases (never a proof).
Property
A For all <domain> …: property test — finite enumeration/sampling over
a disclosed domain (a proof ONLY when the domain is finite AND exhausted).
Theorem
A ## Theorem/Theorem … claim discharged by the proof engine.
Axiom
A ## Axiom/Axiom … — an ASSUMPTION admitted into the premise base,
never proved.
AdmittedAssumption
Anything the proof engine ADMITS rather than proves (an admitted lemma).
Component
★ A COMPONENT TEST — one that MOUNTS a page, drives it, and asserts about the rendered document.
Not an Example, and the difference is what a claim inventory is for: an example checks a
VALUE, this checks a PAGE. They fail in different ways and cover different risk, and
reporting both as example told a reader that a run of twenty examples had checked twenty
values when some of them had checked a document. It is what lets somebody ask “does this
project test its UI at all?” and get an answer.
Finite testing like an example, and never a proof: mounting a page and clicking it checks the cases you drove and nothing else.
Trait Implementations§
impl Copy for ClaimKind
impl Eq for ClaimKind
impl StructuralPartialEq for ClaimKind
Auto Trait Implementations§
impl Freeze for ClaimKind
impl RefUnwindSafe for ClaimKind
impl Send for ClaimKind
impl Sync for ClaimKind
impl Unpin for ClaimKind
impl UnsafeUnpin for ClaimKind
impl UnwindSafe for ClaimKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
§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.