type marshalTestable … type marshalTestCase … type unmarshalTestable … type unmarshalTestCase … type roundTripTestable … type roundTripTestCase … func TestJSONSchemaPropsOrBool(t *testing.T) { … } func TestJSONSchemaPropsOrArray(t *testing.T) { … } func TestJSONSchemaPropsOrStringArray(t *testing.T) { … } func TestJSON(t *testing.T) { … } func marshalJSONTest(input marshalTestable, wantErr bool, expected []byte) func(t *testing.T) { … } func marshalCBORTest(input marshalTestable, wantErr bool, expected []byte) func(t *testing.T) { … } func unmarshalJSONTest(input []byte, wantErr bool, expectedDecoded unmarshalTestable, actualDecoded unmarshalTestable) func(t *testing.T) { … } func unmarshalCBORTest(input []byte, wantErr bool, expectedDecoded unmarshalTestable, actualDecoded unmarshalTestable) func(t *testing.T) { … } func roundTripJSONTest(input roundTripTestable, expectedEncoded []byte, expectedDecoded roundTripTestable, actualDecoded roundTripTestable) func(t *testing.T) { … } func roundTripCBORTest(input roundTripTestable, expectedEncoded []byte, expectedDecoded roundTripTestable, actualDecoded roundTripTestable) func(t *testing.T) { … } func TestJSONUnderlyingArrayReuse(t *testing.T) { … }