// BenchmarkAdmit tests the performance cost of invoking a mutating webhook func BenchmarkAdmit(b *testing.B) { … } // TestAdmit tests that MutatingWebhook#Admit works as expected func TestAdmit(t *testing.T) { … } // TestAdmitCachedClient tests that MutatingWebhook#Admit should cache restClient func TestAdmitCachedClient(t *testing.T) { … } // TestWebhookDuration tests that MutatingWebhook#Admit sets webhook duration in context correctly func TestWebhookDuration(ts *testing.T) { … }