func TestV3SupportsQueryParamBatchV1(t *testing.T) { … } func TestInvalidOpenAPIV3Document(t *testing.T) { … } type fakeRoot … func (f *fakeRoot) GroupVersions() ([]schema.GroupVersion, error) { … } // GVSpec returns hard-coded OpenAPI V3 document. func (f *fakeRoot) GVSpec(gv schema.GroupVersion) (*spec3.OpenAPI, error) { … } func (f *fakeRoot) GVSpecAsMap(gv schema.GroupVersion) (map[string]interface{ … }