From ae3f55c3442939daaff11b1473b67bc1dfb6e661 Mon Sep 17 00:00:00 2001 From: Albert Wu Date: Sun, 28 Jun 2026 11:24:46 -0700 Subject: [PATCH] Regenerate stale consumer controller mock The repository validation command `make check-mocks` was failing before the batch/scoring commits could be validated independently. The failure was concrete: `make check-mocks` ran mock generation, detected that `platform/consumer/mock/controller_mock.go` changed, and exited with: The following files need updating: platform/consumer/mock/controller_mock.go Please run 'make mocks' locally and commit the changes. This commit is exactly that generated-file update. It refreshes `platform/consumer/mock/controller_mock.go` to match the current local `mockgen` output. The diff is generated boilerplate only: the generated command header is added, gomock's `isgomock` marker fields are added, and recorder arguments use `any` instead of `interface{}`. Keeping this as a separate bottom commit matters because no feature code or interfaces changed here. It removes pre-existing generated mock drift so the later batch/scoring commits can each pass `make check-mocks` without carrying unrelated generated-code noise. --- platform/consumer/mock/controller_mock.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platform/consumer/mock/controller_mock.go b/platform/consumer/mock/controller_mock.go index f7636f23..ebb2d82a 100644 --- a/platform/consumer/mock/controller_mock.go +++ b/platform/consumer/mock/controller_mock.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: controller.go +// +// Generated by this command: +// +// mockgen -source=controller.go -destination=mock/controller_mock.go -package=mock +// // Package mock is a generated GoMock package. package mock @@ -17,6 +22,7 @@ import ( type MockDelivery struct { ctrl *gomock.Controller recorder *MockDeliveryMockRecorder + isgomock struct{} } // MockDeliveryMockRecorder is the mock recorder for MockDelivery. @@ -73,7 +79,7 @@ func (m *MockDelivery) ExtendVisibilityTimeout(ctx context.Context, durationMill } // ExtendVisibilityTimeout indicates an expected call of ExtendVisibilityTimeout. -func (mr *MockDeliveryMockRecorder) ExtendVisibilityTimeout(ctx, durationMillis interface{}) *gomock.Call { +func (mr *MockDeliveryMockRecorder) ExtendVisibilityTimeout(ctx, durationMillis any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtendVisibilityTimeout", reflect.TypeOf((*MockDelivery)(nil).ExtendVisibilityTimeout), ctx, durationMillis) } @@ -124,6 +130,7 @@ func (mr *MockDeliveryMockRecorder) ReceivedAt() *gomock.Call { type MockController struct { ctrl *gomock.Controller recorder *MockControllerMockRecorder + isgomock struct{} } // MockControllerMockRecorder is the mock recorder for MockController. @@ -180,7 +187,7 @@ func (m *MockController) Process(ctx context.Context, delivery consumer.Delivery } // Process indicates an expected call of Process. -func (mr *MockControllerMockRecorder) Process(ctx, delivery interface{}) *gomock.Call { +func (mr *MockControllerMockRecorder) Process(ctx, delivery any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Process", reflect.TypeOf((*MockController)(nil).Process), ctx, delivery) }