// RoundtripToUnstructured verifies the roundtrip faithfulness of all external types in a scheme // from native to unstructured and back using both the JSON and CBOR serializers. The intermediate // unstructured objects produced by both encodings must be identical and be themselves // roundtrippable to JSON and CBOR. // // Values for all external types in the scheme are generated by fuzzing the a value of the // corresponding internal type and converting it, except for types whose registered GVK appears in // the "nointernal" set, which are fuzzed directly. func RoundtripToUnstructured(t *testing.T, scheme *runtime.Scheme, funcs fuzzer.FuzzerFuncs, skipped sets.Set[schema.GroupVersionKind], nointernal sets.Set[schema.GroupVersionKind]) { … }