type FakeOpenAPIServer … // Creates a mock OpenAPIV3 server as it would be on a standing kubernetes // API server. // // specsPath - Give a path to some test data organized so that each GroupVersion // has its own OpenAPI V3 JSON file. // // i.e. apps/v1beta1 is stored in <specsPath>/apps/v1beta1.json func NewFakeOpenAPIV3Server(specsPath string) (*FakeOpenAPIServer, error) { … } type testMux … func (t *testMux) Handle(path string, handler http.Handler) { … } func (t *testMux) HandlePrefix(path string, handler http.Handler) { … } func (t *testMux) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }