func TestParseRuntimeConfig(t *testing.T) { … } func newFakeAPIResourceConfigSource() *serverstore.ResourceConfig { … } // apiResourcesToCheck are the apis we use in this set of unit tests. They will be check for enable/disable status func apiResourcesToCheck() []schema.GroupVersionResource { … } func defaultFakeEnabledResources() map[schema.GroupVersionResource]bool { … } func newFakeScheme(t *testing.T) *runtime.Scheme { … }