pub struct TestRegistration {
pub file: &'static str,
pub module_path: &'static str,
pub name: &'static str,
pub fixture_requests: &'static [&'static str],
pub annotations: &'static [TestAnnotation],
pub timeout_ms: Option<u64>,
pub retries: Option<u32>,
pub use_options: Option<&'static str>,
pub test_fn: fn(FixturePool) -> Pin<Box<dyn Future<Output = Result<(), TestFailure>> + Send>>,
}Expand description
What the #[ferritest] proc macro submits via inventory::submit!.
Fields§
§file: &'static str§module_path: &'static strThe module_path!() of the test function.
Used to derive the suite name from the Rust module structure.
name: &'static str§fixture_requests: &'static [&'static str]§annotations: &'static [TestAnnotation]§timeout_ms: Option<u64>§retries: Option<u32>§use_options: Option<&'static str>Raw JSON string for fixture/context overrides (viewport, locale, etc.)
test_fn: fn(FixturePool) -> Pin<Box<dyn Future<Output = Result<(), TestFailure>> + Send>>Trait Implementations§
impl Collect for TestRegistration
Auto Trait Implementations§
impl Freeze for TestRegistration
impl RefUnwindSafe for TestRegistration
impl Send for TestRegistration
impl Sync for TestRegistration
impl Unpin for TestRegistration
impl UnsafeUnpin for TestRegistration
impl UnwindSafe for TestRegistration
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
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>
Converts
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>
Converts
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