Attribute Macro rstest_reuse::template
source · #[template]
Expand description
Define a template where the name is given from the function name. This attribute register all
attributes. The function signature don’t really mater but to make it clear is better that you
use a signature like if you’re wrinting a standard rstest
.
If you need to export the template at the root of your crate or use it from another crate you
should annotate it with #[export]
attribute. This attribute add #[macro_export]
attribute to
the template macro and make possible to use it from another crate.
When define a template you can also set the arguments attributes like #[case]
, #[values]
and #[with]
: when you apply it attributes will be copied to the matched by name arguments.