func Test_ConvertJSONSchemaPropsToOpenAPIv2Schema(t *testing.T) { … } func Test_ConvertJSONSchemaPropsToOpenAPIv2SchemaByType(t *testing.T) { … } func withVendorExtensions(s *spec.Schema, key string, value interface{ … } func refEqual(x spec.Ref, y spec.Ref) bool { … } // TestKubeOpenapiRejectionFiltering tests that the CRD openapi schema filtering leads to a spec that the // kube-openapi/pkg/util/proto model code support in version used in Kubernetes 1.13. func TestKubeOpenapiRejectionFiltering(t *testing.T) { … } // fuzzFuncs is copied from kube-openapi/pkg/aggregator. It fuzzes go-openapi/spec schemata. func fuzzFuncs(f *fuzz.Fuzzer, refFunc func(ref *spec.Ref, c fuzz.Continue, visible bool)) { … } func TestFilterOut(t *testing.T) { … } func max(i, j int) int { … }