Crate interpolate_name

source ·
Expand description

interpolate_name

interpolate_name consists in a set of procedural macro attributes geared towards reduce the boilerplate while writing repetitive tests.

  • interpolate_test: a quick way to test the same function by passing specific arguments and have a test entry for each of them.
  • interpolate_name: a simple function renamer that can be combined with macros to support more complex patterns.

Attribute Macros

  • Rename the decorated function by appending _ and the provided specifier.
  • Generate a new test that calls the decorated function with the provided arguments.