Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Aug 9, 2024
1 parent fe2c661 commit fa365a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/storage/codecs/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ impl Parse for GenerateTestsInput {
}
}

/// Generates tests for given type based on passed parameters.
///
/// See `arbitrary::maybe_generate_tests` for more information.
///
/// Example usage:
/// ```ignore
/// generate_tests(#[rlp, compact], MyType, MyTypeTests)
/// ```
#[proc_macro]
pub fn generate_tests(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as GenerateTestsInput);
Expand Down

0 comments on commit fa365a6

Please sign in to comment.