From 4c790c354da63c831c08cb4744f376b926ef39fa Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 21 Sep 2023 13:17:41 +0200 Subject: [PATCH] regen with 0.3.0 --- proposals/mocks.go | 24 ++++++++++++++---------- sql/mocks/mocks.go | 8 ++++++-- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/proposals/mocks.go b/proposals/mocks.go index 45577a5268..f9a832949d 100644 --- a/proposals/mocks.go +++ b/proposals/mocks.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ./interface.go - +// +// Generated by this command: +// +// mockgen -typed -package=proposals -destination=./mocks.go -source=./interface.go +// // Package proposals is a generated GoMock package. package proposals @@ -47,7 +51,7 @@ func (m *MockmeshProvider) AddBallot(arg0 context.Context, arg1 *types.Ballot) ( } // AddBallot indicates an expected call of AddBallot. -func (mr *MockmeshProviderMockRecorder) AddBallot(arg0, arg1 interface{}) *meshProviderAddBallotCall { +func (mr *MockmeshProviderMockRecorder) AddBallot(arg0, arg1 any) *meshProviderAddBallotCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBallot", reflect.TypeOf((*MockmeshProvider)(nil).AddBallot), arg0, arg1) return &meshProviderAddBallotCall{Call: call} @@ -85,7 +89,7 @@ func (m *MockmeshProvider) AddTXsFromProposal(arg0 context.Context, arg1 types.L } // AddTXsFromProposal indicates an expected call of AddTXsFromProposal. -func (mr *MockmeshProviderMockRecorder) AddTXsFromProposal(arg0, arg1, arg2, arg3 interface{}) *meshProviderAddTXsFromProposalCall { +func (mr *MockmeshProviderMockRecorder) AddTXsFromProposal(arg0, arg1, arg2, arg3 any) *meshProviderAddTXsFromProposalCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTXsFromProposal", reflect.TypeOf((*MockmeshProvider)(nil).AddTXsFromProposal), arg0, arg1, arg2, arg3) return &meshProviderAddTXsFromProposalCall{Call: call} @@ -185,7 +189,7 @@ func (m *MockeligibilityValidator) CheckEligibility(arg0 context.Context, arg1 * } // CheckEligibility indicates an expected call of CheckEligibility. -func (mr *MockeligibilityValidatorMockRecorder) CheckEligibility(arg0, arg1, arg2 interface{}) *eligibilityValidatorCheckEligibilityCall { +func (mr *MockeligibilityValidatorMockRecorder) CheckEligibility(arg0, arg1, arg2 any) *eligibilityValidatorCheckEligibilityCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckEligibility", reflect.TypeOf((*MockeligibilityValidator)(nil).CheckEligibility), arg0, arg1, arg2) return &eligibilityValidatorCheckEligibilityCall{Call: call} @@ -247,7 +251,7 @@ func (m *MocktortoiseProvider) DecodeBallot(arg0 *types.BallotTortoiseData) (*to } // DecodeBallot indicates an expected call of DecodeBallot. -func (mr *MocktortoiseProviderMockRecorder) DecodeBallot(arg0 interface{}) *tortoiseProviderDecodeBallotCall { +func (mr *MocktortoiseProviderMockRecorder) DecodeBallot(arg0 any) *tortoiseProviderDecodeBallotCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeBallot", reflect.TypeOf((*MocktortoiseProvider)(nil).DecodeBallot), arg0) return &tortoiseProviderDecodeBallotCall{Call: call} @@ -285,7 +289,7 @@ func (m *MocktortoiseProvider) GetBallot(arg0 types.BallotID) *tortoise.BallotDa } // GetBallot indicates an expected call of GetBallot. -func (mr *MocktortoiseProviderMockRecorder) GetBallot(arg0 interface{}) *tortoiseProviderGetBallotCall { +func (mr *MocktortoiseProviderMockRecorder) GetBallot(arg0 any) *tortoiseProviderGetBallotCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBallot", reflect.TypeOf((*MocktortoiseProvider)(nil).GetBallot), arg0) return &tortoiseProviderGetBallotCall{Call: call} @@ -323,7 +327,7 @@ func (m *MocktortoiseProvider) StoreBallot(arg0 *tortoise.DecodedBallot) error { } // StoreBallot indicates an expected call of StoreBallot. -func (mr *MocktortoiseProviderMockRecorder) StoreBallot(arg0 interface{}) *tortoiseProviderStoreBallotCall { +func (mr *MocktortoiseProviderMockRecorder) StoreBallot(arg0 any) *tortoiseProviderStoreBallotCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreBallot", reflect.TypeOf((*MocktortoiseProvider)(nil).StoreBallot), arg0) return &tortoiseProviderStoreBallotCall{Call: call} @@ -384,7 +388,7 @@ func (m *MockvrfVerifier) Verify(arg0 types.NodeID, arg1 []byte, arg2 types.VrfS } // Verify indicates an expected call of Verify. -func (mr *MockvrfVerifierMockRecorder) Verify(arg0, arg1, arg2 interface{}) *vrfVerifierVerifyCall { +func (mr *MockvrfVerifierMockRecorder) Verify(arg0, arg1, arg2 any) *vrfVerifierVerifyCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockvrfVerifier)(nil).Verify), arg0, arg1, arg2) return &vrfVerifierVerifyCall{Call: call} @@ -446,7 +450,7 @@ func (m *MocknonceFetcher) VRFNonce(arg0 types.NodeID, arg1 types.EpochID) (type } // VRFNonce indicates an expected call of VRFNonce. -func (mr *MocknonceFetcherMockRecorder) VRFNonce(arg0, arg1 interface{}) *nonceFetcherVRFNonceCall { +func (mr *MocknonceFetcherMockRecorder) VRFNonce(arg0, arg1 any) *nonceFetcherVRFNonceCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VRFNonce", reflect.TypeOf((*MocknonceFetcher)(nil).VRFNonce), arg0, arg1) return &nonceFetcherVRFNonceCall{Call: call} @@ -545,7 +549,7 @@ func (m *MocklayerClock) LayerToTime(arg0 types.LayerID) time.Time { } // LayerToTime indicates an expected call of LayerToTime. -func (mr *MocklayerClockMockRecorder) LayerToTime(arg0 interface{}) *layerClockLayerToTimeCall { +func (mr *MocklayerClockMockRecorder) LayerToTime(arg0 any) *layerClockLayerToTimeCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LayerToTime", reflect.TypeOf((*MocklayerClock)(nil).LayerToTime), arg0) return &layerClockLayerToTimeCall{Call: call} diff --git a/sql/mocks/mocks.go b/sql/mocks/mocks.go index 1851d8b92c..be8ea5fca6 100644 --- a/sql/mocks/mocks.go +++ b/sql/mocks/mocks.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ./database.go - +// +// Generated by this command: +// +// mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./database.go +// // Package mocks is a generated GoMock package. package mocks @@ -44,7 +48,7 @@ func (m *MockExecutor) Exec(arg0 string, arg1 sql.Encoder, arg2 sql.Decoder) (in } // Exec indicates an expected call of Exec. -func (mr *MockExecutorMockRecorder) Exec(arg0, arg1, arg2 interface{}) *ExecutorExecCall { +func (mr *MockExecutorMockRecorder) Exec(arg0, arg1, arg2 any) *ExecutorExecCall { mr.mock.ctrl.T.Helper() call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockExecutor)(nil).Exec), arg0, arg1, arg2) return &ExecutorExecCall{Call: call}