type FakeHandler … func (h *FakeHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) (err error) { … } func (h *FakeHandler) Validate(ctx context.Context, a Attributes, o ObjectInterfaces) (err error) { … } func makeHandler(name string, accept bool, ops ...Operation) *FakeHandler { … } func TestAdmitAndValidate(t *testing.T) { … } func TestHandles(t *testing.T) { … }