Function libipld::codec::assert_roundtrip
source ยท pub fn assert_roundtrip<C, T>(c: C, data: &T, ipld: &Ipld)
Expand description
Utility for testing codecs.
Encodes the data
using the codec c
and checks that it matches the ipld
.