macro_rules! with_subcases {
    (
        $(
            $( #[$meta:meta] )*
            $vis:vis fn $name:ident ( $( $arg:ident : $arg_t:ty ),* $(,)? ) {
                $($body:tt)*
            }
        )+
    ) => { ... };
}
Expand description

Allows to fork a function’s execution to create multiple paths which share code, for example, test case setup/teardown.

Macro body can contain one or more function definition. Functions are restricted to not to return anything.

For usage, please refer to the crate doc.