github.com/klaytn/klaytn@v1.12.1/node/cn/mocks/lesserver_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/node/cn (interfaces: LesServer) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 blockchain "github.com/klaytn/klaytn/blockchain" 12 p2p "github.com/klaytn/klaytn/networks/p2p" 13 ) 14 15 // MockLesServer is a mock of LesServer interface 16 type MockLesServer struct { 17 ctrl *gomock.Controller 18 recorder *MockLesServerMockRecorder 19 } 20 21 // MockLesServerMockRecorder is the mock recorder for MockLesServer 22 type MockLesServerMockRecorder struct { 23 mock *MockLesServer 24 } 25 26 // NewMockLesServer creates a new mock instance 27 func NewMockLesServer(ctrl *gomock.Controller) *MockLesServer { 28 mock := &MockLesServer{ctrl: ctrl} 29 mock.recorder = &MockLesServerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use 34 func (m *MockLesServer) EXPECT() *MockLesServerMockRecorder { 35 return m.recorder 36 } 37 38 // Protocols mocks base method 39 func (m *MockLesServer) Protocols() []p2p.Protocol { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Protocols") 42 ret0, _ := ret[0].([]p2p.Protocol) 43 return ret0 44 } 45 46 // Protocols indicates an expected call of Protocols 47 func (mr *MockLesServerMockRecorder) Protocols() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Protocols", reflect.TypeOf((*MockLesServer)(nil).Protocols)) 50 } 51 52 // SetBloomBitsIndexer mocks base method 53 func (m *MockLesServer) SetBloomBitsIndexer(arg0 *blockchain.ChainIndexer) { 54 m.ctrl.T.Helper() 55 m.ctrl.Call(m, "SetBloomBitsIndexer", arg0) 56 } 57 58 // SetBloomBitsIndexer indicates an expected call of SetBloomBitsIndexer 59 func (mr *MockLesServerMockRecorder) SetBloomBitsIndexer(arg0 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBloomBitsIndexer", reflect.TypeOf((*MockLesServer)(nil).SetBloomBitsIndexer), arg0) 62 } 63 64 // Start mocks base method 65 func (m *MockLesServer) Start(arg0 p2p.Server) { 66 m.ctrl.T.Helper() 67 m.ctrl.Call(m, "Start", arg0) 68 } 69 70 // Start indicates an expected call of Start 71 func (mr *MockLesServerMockRecorder) Start(arg0 interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockLesServer)(nil).Start), arg0) 74 } 75 76 // Stop mocks base method 77 func (m *MockLesServer) Stop() { 78 m.ctrl.T.Helper() 79 m.ctrl.Call(m, "Stop") 80 } 81 82 // Stop indicates an expected call of Stop 83 func (mr *MockLesServerMockRecorder) Stop() *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockLesServer)(nil).Stop)) 86 }