[][src]Module elrond_codec::test_util

Functions

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_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.

dep_decode_from_byte_slice_or_panic

Calls dep_decode_or_exit and panics if an encoding error occurs. Do not use in smart contracts!

dep_encode_to_vec_or_panic

Calls dep_encode_or_exit and panics if an encoding error occurs. Do not use in smart contracts!

ser_deser_ok
top_decode_from_byte_slice_or_panic

Calls top_decode_or_exit and panics if an encoding error occurs. Do not use in smart contracts!

top_encode_to_vec_or_panic

Calls top_encode_or_exit and panics if an encoding error occurs. Do not use in smart contracts!