From b64481916e315d36a2cc0a906420e711b1edb104 Mon Sep 17 00:00:00 2001 From: tcar Date: Thu, 5 Oct 2023 15:40:18 +0200 Subject: [PATCH] update mock; Signed-off-by: tcar --- chains/evm/eventhandlers/mock/eventhandlers.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/chains/evm/eventhandlers/mock/eventhandlers.go b/chains/evm/eventhandlers/mock/eventhandlers.go index a1355629..1a17312c 100644 --- a/chains/evm/eventhandlers/mock/eventhandlers.go +++ b/chains/evm/eventhandlers/mock/eventhandlers.go @@ -1,6 +1,8 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ./chains/evm/eventhandlers/event-handler.go - +// +// Generated by this command: +// mockgen -destination=chains/evm/eventhandlers/mock/eventhandlers.go -source=./chains/evm/eventhandlers/event-handler.go -package mock // Package mock is a generated GoMock package. package mock @@ -12,7 +14,8 @@ import ( eventhandlers "github.com/ChainSafe/sygma-core/chains/evm/eventhandlers" types "github.com/ChainSafe/sygma-core/types" common "github.com/ethereum/go-ethereum/common" - gomock "go.uber.org/mock/gomock") + gomock "go.uber.org/mock/gomock" +) // MockEventListener is a mock of EventListener interface. type MockEventListener struct { @@ -47,7 +50,7 @@ func (m *MockEventListener) FetchDeposits(ctx context.Context, address common.Ad } // FetchDeposits indicates an expected call of FetchDeposits. -func (mr *MockEventListenerMockRecorder) FetchDeposits(ctx, address, startBlock, endBlock interface{}) *gomock.Call { +func (mr *MockEventListenerMockRecorder) FetchDeposits(ctx, address, startBlock, endBlock any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchDeposits", reflect.TypeOf((*MockEventListener)(nil).FetchDeposits), ctx, address, startBlock, endBlock) } @@ -85,7 +88,7 @@ func (m *MockDepositHandler) HandleDeposit(sourceID, destID uint8, nonce uint64, } // HandleDeposit indicates an expected call of HandleDeposit. -func (mr *MockDepositHandlerMockRecorder) HandleDeposit(sourceID, destID, nonce, resourceID, calldata, handlerResponse interface{}) *gomock.Call { +func (mr *MockDepositHandlerMockRecorder) HandleDeposit(sourceID, destID, nonce, resourceID, calldata, handlerResponse any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleDeposit", reflect.TypeOf((*MockDepositHandler)(nil).HandleDeposit), sourceID, destID, nonce, resourceID, calldata, handlerResponse) }