Module test_util
Source - check_dep_decode
- Calls both the fast exit and the regular dep-decode,
compares that the outputs are equal, then returns the result.
To be used in serialization tests.
- check_dep_encode
- Calls both the fast exit and the regular dep-encode,
compares that the outputs are equal, then returns the result.
To be used in serialization tests.
- check_dep_encode_decode
- check_top_decode
- Calls both the fast exit and the regular top-decode,
compares that the outputs are equal, then returns the result.
To be used in serialization tests.
- check_top_encode
- Calls both the fast exit and the regular top-encode,
compares that the outputs are equal, then returns the result.
To be used in serialization tests.
- check_top_encode_decode
- dep_decode_from_byte_slice_or_panic
- Calls nested decode and panics if an encoding error occurs.
Do not use in smart contracts!
- dep_encode_to_vec_or_panic
- Calls nested encode and panics if an encoding error occurs.
Do not use in smart contracts!
- ser_deser_okDeprecated
- backwards compatibility only, will remove in next major release
- top_encode_to_vec_u8_or_panic
- Calls top encode and panics if an encoding error occurs.
Do not use in smart contracts!