Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Oct 12, 2023
1 parent cf3c979 commit 1a2cb0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions massa-serialization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ mod tests {
use num::rational::Ratio;
use paste::paste;

// This macro creates a suite of tests for all types of numbers declared as parameters. Ths list of the
// tests for each type :
// - Test with a normal case that everything works
// - Test with a normal case but a more bigger number that everything works
// - Test with a number that is out of the range of the deserializer
// - Test to give an empty buffer to the deserializer
macro_rules! gen_test_varint {
($($type:ident, $bs:ident, $ds:ident);*) => {
$(
Expand Down

0 comments on commit 1a2cb0e

Please sign in to comment.