generate_tests!() { /* proc-macro */ }
Expand description
Generates tests for given type based on passed parameters.
See arbitrary::maybe_generate_tests
for more information.
Examples:
generate_tests!(#[rlp] MyType, MyTypeTests)
: will generate rlp roundtrip tests forMyType
in a module namedMyTypeTests
.generate_tests!(#[compact, 10] MyType, MyTypeTests)
: will generate compact roundtrip tests forMyType
limited to 10 cases.