Attribute Macro tested_fixture

Source
#[tested_fixture]
Expand description

Attribute macro applied to a function to turn it into a unit test which is cached as a fixture

The syntax supported by this macro is: attr* vis? ident (: ty)?

All attributes and the visibilty level will be applied to the newly declared static fixture ident. The type can either be explicitly specified or will be inferred from the return type of the function being annotated.