github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_syncmanager.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/aergoio/aergo/p2p/p2pcommon (interfaces: SyncManager) 3 4 // Package mock_p2pcommon is a generated GoMock package. 5 package p2pmock 6 7 import ( 8 reflect "reflect" 9 10 p2pcommon "github.com/aergoio/aergo/p2p/p2pcommon" 11 types "github.com/aergoio/aergo/types" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockSyncManager is a mock of SyncManager interface 16 type MockSyncManager struct { 17 ctrl *gomock.Controller 18 recorder *MockSyncManagerMockRecorder 19 } 20 21 // MockSyncManagerMockRecorder is the mock recorder for MockSyncManager 22 type MockSyncManagerMockRecorder struct { 23 mock *MockSyncManager 24 } 25 26 // NewMockSyncManager creates a new mock instance 27 func NewMockSyncManager(ctrl *gomock.Controller) *MockSyncManager { 28 mock := &MockSyncManager{ctrl: ctrl} 29 mock.recorder = &MockSyncManagerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use 34 func (m *MockSyncManager) EXPECT() *MockSyncManagerMockRecorder { 35 return m.recorder 36 } 37 38 // HandleBlockProducedNotice mocks base method 39 func (m *MockSyncManager) HandleBlockProducedNotice(arg0 p2pcommon.RemotePeer, arg1 *types.Block) { 40 m.ctrl.T.Helper() 41 m.ctrl.Call(m, "HandleBlockProducedNotice", arg0, arg1) 42 } 43 44 // HandleBlockProducedNotice indicates an expected call of HandleBlockProducedNotice 45 func (mr *MockSyncManagerMockRecorder) HandleBlockProducedNotice(arg0, arg1 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleBlockProducedNotice", reflect.TypeOf((*MockSyncManager)(nil).HandleBlockProducedNotice), arg0, arg1) 48 } 49 50 // HandleGetBlockResponse mocks base method 51 func (m *MockSyncManager) HandleGetBlockResponse(arg0 p2pcommon.RemotePeer, arg1 p2pcommon.Message, arg2 *types.GetBlockResponse) { 52 m.ctrl.T.Helper() 53 m.ctrl.Call(m, "HandleGetBlockResponse", arg0, arg1, arg2) 54 } 55 56 // HandleGetBlockResponse indicates an expected call of HandleGetBlockResponse 57 func (mr *MockSyncManagerMockRecorder) HandleGetBlockResponse(arg0, arg1, arg2 interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleGetBlockResponse", reflect.TypeOf((*MockSyncManager)(nil).HandleGetBlockResponse), arg0, arg1, arg2) 60 } 61 62 // HandleNewBlockNotice mocks base method 63 func (m *MockSyncManager) HandleNewBlockNotice(arg0 p2pcommon.RemotePeer, arg1 *types.NewBlockNotice) { 64 m.ctrl.T.Helper() 65 m.ctrl.Call(m, "HandleNewBlockNotice", arg0, arg1) 66 } 67 68 // HandleNewBlockNotice indicates an expected call of HandleNewBlockNotice 69 func (mr *MockSyncManagerMockRecorder) HandleNewBlockNotice(arg0, arg1 interface{}) *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleNewBlockNotice", reflect.TypeOf((*MockSyncManager)(nil).HandleNewBlockNotice), arg0, arg1) 72 } 73 74 // HandleNewTxNotice mocks base method 75 func (m *MockSyncManager) HandleNewTxNotice(arg0 p2pcommon.RemotePeer, arg1 []types.TxID, arg2 *types.NewTransactionsNotice) { 76 m.ctrl.T.Helper() 77 m.ctrl.Call(m, "HandleNewTxNotice", arg0, arg1, arg2) 78 } 79 80 // HandleNewTxNotice indicates an expected call of HandleNewTxNotice 81 func (mr *MockSyncManagerMockRecorder) HandleNewTxNotice(arg0, arg1, arg2 interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleNewTxNotice", reflect.TypeOf((*MockSyncManager)(nil).HandleNewTxNotice), arg0, arg1, arg2) 84 }