pub struct TestDescriptor {
pub name: &'static str,
pub module_path: &'static str,
pub file: &'static str,
pub line: u32,
pub context_type: &'static str,
pub run_group: GroupRunnerFn,
}Expand description
Descriptor for a registered integration test.
This struct is submitted to the inventory collection by the #[admixture_test] macro.
Fields§
§name: &'static strName of the test function.
module_path: &'static strModule path where the test is defined.
file: &'static strSource file where the test is defined.
line: u32Line number where the test is defined.
context_type: &'static strContext type identifier (for grouping tests).
run_group: GroupRunnerFnType-erased entry point to run all tests for this context type.
This function collects test functions from the per-context registry and dispatches to the generic runner with concrete types.
Trait Implementations§
Source§impl Clone for TestDescriptor
impl Clone for TestDescriptor
Source§fn clone(&self) -> TestDescriptor
fn clone(&self) -> TestDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Collect for TestDescriptor
impl Copy for TestDescriptor
Auto Trait Implementations§
impl Freeze for TestDescriptor
impl RefUnwindSafe for TestDescriptor
impl Send for TestDescriptor
impl Sync for TestDescriptor
impl Unpin for TestDescriptor
impl UnsafeUnpin for TestDescriptor
impl UnwindSafe for TestDescriptor
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