Struct hotshot_macros::TestData
source · pub(crate) struct TestData {
pub(crate) ty: TypePath,
pub(crate) imply: ExprPath,
pub(crate) builder_impl: ExprPath,
pub(crate) version: ExprPath,
pub(crate) test_name: Ident,
pub(crate) metadata: Expr,
pub(crate) ignore: LitBool,
}Expand description
requisite data to generate a single test
Fields§
§ty: TypePathtype
imply: ExprPathimpl
builder_impl: ExprPathbuilder implementation
version: ExprPathimpl
test_name: Identname of test
metadata: Exprtest description
ignore: LitBoolwhether or not to ignore the test
Implementations§
source§impl TestData
impl TestData
sourcepub(crate) fn generate_test(&self) -> TokenStream2
pub(crate) fn generate_test(&self) -> TokenStream2
generate the code for a single test
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestData
impl RefUnwindSafe for TestData
impl !Send for TestData
impl !Sync for TestData
impl Unpin for TestData
impl UnwindSafe for TestData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)