reth_codecs_derive

Macro generate_tests

Source
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 for MyType in a module named MyTypeTests.
  • generate_tests!(#[compact, 10] MyType, MyTypeTests): will generate compact roundtrip tests for MyType limited to 10 cases.