[−][src]Crate generic_tests
Support for generic test definitions with a procedural attribute macro.
The define
macro provided by this crate allows the test writer to
reuse code between test cases or benchmarks that use the same test protocol
with different types under test. As in general programming with Rust, this
is achieved by using generic parameters and trait bounds. The generic
test functions are annotated with the familiar test
or bench
attributes,
however the actual test cases can be instantiated in multiple submodules
annotated with the instantiate_tests
attribute providing specific
arguments for the tests.
Attribute Macros
define | Populates a module tree with test cases parameterizing generic definitions. |