func newAutoRegisterManagedAPIService(name string) *apiregistrationv1.APIService { … } func newAutoRegisterManagedOnStartAPIService(name string) *apiregistrationv1.APIService { … } func newAutoRegisterManagedModifiedAPIService(name string) *apiregistrationv1.APIService { … } func newAPIService(name string) *apiregistrationv1.APIService { … } func checkForNothing(name string, client *fake.Clientset) error { … } func checkForCreate(name string, client *fake.Clientset) error { … } func checkForCreateOnStart(name string, client *fake.Clientset) error { … } func checkForUpdate(name string, client *fake.Clientset) error { … } func checkForDelete(name string, client *fake.Clientset) error { … } func TestSync(t *testing.T) { … }