github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/edge/mocks/edgehub/fake_adapter.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeedge/kubeedge/pkg/edgehub/clients (interfaces: Adapter) 3 4 // Package edgehub is a generated GoMock package. 5 package edgehub 6 7 import ( 8 "reflect" 9 10 "github.com/golang/mock/gomock" 11 "github.com/kubeedge/beehive/pkg/core/model" 12 ) 13 14 // MockAdapter is a mock of Adapter interface 15 type MockAdapter struct { 16 ctrl *gomock.Controller 17 recorder *MockAdapterMockRecorder 18 } 19 20 // MockAdapterMockRecorder is the mock recorder for MockAdapter 21 type MockAdapterMockRecorder struct { 22 mock *MockAdapter 23 } 24 25 // NewMockAdapter creates a new mock instance 26 func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter { 27 mock := &MockAdapter{ctrl: ctrl} 28 mock.recorder = &MockAdapterMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder { 34 return m.recorder 35 } 36 37 // Init mocks base method 38 func (m *MockAdapter) Init() error { 39 ret := m.ctrl.Call(m, "Init") 40 ret0, _ := ret[0].(error) 41 return ret0 42 } 43 44 // Init indicates an expected call of Init 45 func (mr *MockAdapterMockRecorder) Init() *gomock.Call { 46 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAdapter)(nil).Init)) 47 } 48 49 // Notify mocks base method 50 func (m *MockAdapter) Notify(arg0 map[string]string) { 51 m.ctrl.Call(m, "Notify", arg0) 52 } 53 54 // Notify indicates an expected call of Notify 55 func (mr *MockAdapterMockRecorder) Notify(arg0 interface{}) *gomock.Call { 56 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockAdapter)(nil).Notify), arg0) 57 } 58 59 // Receive mocks base method 60 func (m *MockAdapter) Receive() (model.Message, error) { 61 ret := m.ctrl.Call(m, "Receive") 62 ret0, _ := ret[0].(model.Message) 63 ret1, _ := ret[1].(error) 64 return ret0, ret1 65 } 66 67 // Receive indicates an expected call of Receive 68 func (mr *MockAdapterMockRecorder) Receive() *gomock.Call { 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Receive", reflect.TypeOf((*MockAdapter)(nil).Receive)) 70 } 71 72 // Send mocks base method 73 func (m *MockAdapter) Send(arg0 model.Message) error { 74 ret := m.ctrl.Call(m, "Send", arg0) 75 ret0, _ := ret[0].(error) 76 return ret0 77 } 78 79 // Send indicates an expected call of Send 80 func (mr *MockAdapterMockRecorder) Send(arg0 interface{}) *gomock.Call { 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockAdapter)(nil).Send), arg0) 82 } 83 84 // Uninit mocks base method 85 func (m *MockAdapter) Uninit() { 86 m.ctrl.Call(m, "Uninit") 87 } 88 89 // Uninit indicates an expected call of Uninit 90 func (mr *MockAdapterMockRecorder) Uninit() *gomock.Call { 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Uninit", reflect.TypeOf((*MockAdapter)(nil).Uninit)) 92 }