pub struct ConformanceTestCase {
pub symbol: Symbol,
pub organ: Symbol,
pub affected_badge: Option<Symbol>,
/* private fields */
}Expand description
One conformance test: its symbol, the organ it covers, an optional badge it affects, and the check closure.
Fields§
§symbol: SymbolSymbol identifying the test.
organ: SymbolOrgan the test exercises.
affected_badge: Option<Symbol>Fidelity badge whose level drops if this test fails, if any.
Implementations§
Source§impl ConformanceTestCase
impl ConformanceTestCase
Sourcepub fn new(symbol: Symbol, organ: Symbol, check: ConformanceCheck) -> Self
pub fn new(symbol: Symbol, organ: Symbol, check: ConformanceCheck) -> Self
Build a test for organ identified by symbol, running check.
Sourcepub fn affecting_badge(self, badge: Symbol) -> Self
pub fn affecting_badge(self, badge: Symbol) -> Self
Mark this test as affecting badge, lowering its level on failure.
Trait Implementations§
Source§impl Clone for ConformanceTestCase
impl Clone for ConformanceTestCase
Source§fn clone(&self) -> ConformanceTestCase
fn clone(&self) -> ConformanceTestCase
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ConformanceTestCase
impl !UnwindSafe for ConformanceTestCase
impl Freeze for ConformanceTestCase
impl Send for ConformanceTestCase
impl Sync for ConformanceTestCase
impl Unpin for ConformanceTestCase
impl UnsafeUnpin for ConformanceTestCase
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