func nilPointerFor[T interface{ … } // TestRoundtrip roundtrips object serialization to interface{} and back via CBOR. func TestRoundtrip(t *testing.T) { … } // TestRoundtripTextEncoding exercises roundtrips between []byte and string. func TestRoundtripTextEncoding(t *testing.T) { … }