func TestGetMutatingWebhookConfig(t *testing.T) { … } type mockCreateMutatingWebhookAccessor … func (mock *mockCreateMutatingWebhookAccessor) calledNTimes() int { … } func (mock *mockCreateMutatingWebhookAccessor) resetCounter() { … } func (mock *mockCreateMutatingWebhookAccessor) incrementCounter() { … } func (mock *mockCreateMutatingWebhookAccessor) fn(uid string, configurationName string, h *v1.MutatingWebhook) webhook.WebhookAccessor { … } func mutatingConfigurationTotalWebhooks(configurations []*v1.MutatingWebhookConfiguration) int { … } func TestGetMutatingWebhookConfigSmartReload(t *testing.T) { … }