pub struct TestCase {
pub id: &'static str,
pub category: &'static str,
pub spec: &'static str,
pub about: &'static str,
pub run: fn(&Ctx<'_>) -> Result<Metrics, String>,
}Expand description
One conformance test case.
Fields§
§id: &'static strStable identifier, e.g. create.overwrite_if.
category: &'static strGrouping used by the runner and UI, e.g. Create.
spec: &'static strSpec / MS-suite reference this mirrors.
about: &'static strOne-line description.
run: fn(&Ctx<'_>) -> Result<Metrics, String>Runner: Ok(metrics) on pass, Err(message) on failure.
Auto Trait Implementations§
impl Freeze for TestCase
impl RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnsafeUnpin for TestCase
impl UnwindSafe for TestCase
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