1 // Code generated by MockGen. DO NOT EDIT.
2 // Source: git.fd.io/govpp.git/api (Interfaces: Channel)
4 // Package mock_api is a generated GoMock package.
8 api "git.fd.io/govpp.git/api"
9 gomock "github.com/golang/mock/gomock"
14 // MockChannel is a mock of Channel interface
15 type MockChannel struct {
16 ctrl *gomock.Controller
17 recorder *MockChannelMockRecorder
20 // MockChannelMockRecorder is the mock recorder for MockChannel
21 type MockChannelMockRecorder struct {
25 // NewMockChannel creates a new mock instance
26 func NewMockChannel(ctrl *gomock.Controller) *MockChannel {
27 mock := &MockChannel{ctrl: ctrl}
28 mock.recorder = &MockChannelMockRecorder{mock}
32 // EXPECT returns an object that allows the caller to indicate expected use
33 func (m *MockChannel) EXPECT() *MockChannelMockRecorder {
37 // Close mocks base method
38 func (m *MockChannel) Close() {
39 m.ctrl.Call(m, "Close")
42 // Close indicates an expected call of Close
43 func (mr *MockChannelMockRecorder) Close() *gomock.Call {
44 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockChannel)(nil).Close))
47 // SendMultiRequest mocks base method
48 func (m *MockChannel) SendMultiRequest(arg0 api.Message) api.MultiRequestCtx {
49 ret := m.ctrl.Call(m, "SendMultiRequest", arg0)
50 ret0, _ := ret[0].(api.MultiRequestCtx)
54 // SendMultiRequest indicates an expected call of SendMultiRequest
55 func (mr *MockChannelMockRecorder) SendMultiRequest(arg0 interface{}) *gomock.Call {
56 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMultiRequest", reflect.TypeOf((*MockChannel)(nil).SendMultiRequest), arg0)
59 // SendRequest mocks base method
60 func (m *MockChannel) SendRequest(arg0 api.Message) api.RequestCtx {
61 ret := m.ctrl.Call(m, "SendRequest", arg0)
62 ret0, _ := ret[0].(api.RequestCtx)
66 // SendRequest indicates an expected call of SendRequest
67 func (mr *MockChannelMockRecorder) SendRequest(arg0 interface{}) *gomock.Call {
68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockChannel)(nil).SendRequest), arg0)
71 // SetReplyTimeout mocks base method
72 func (m *MockChannel) SetReplyTimeout(arg0 time.Duration) {
73 m.ctrl.Call(m, "SetReplyTimeout", arg0)
76 // SetReplyTimeout indicates an expected call of SetReplyTimeout
77 func (mr *MockChannelMockRecorder) SetReplyTimeout(arg0 interface{}) *gomock.Call {
78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReplyTimeout", reflect.TypeOf((*MockChannel)(nil).SetReplyTimeout), arg0)
81 // SubscribeNotification mocks base method
82 func (m *MockChannel) SubscribeNotification(arg0 chan api.Message, arg1 api.Message) (api.SubscriptionCtx, error) {
83 ret := m.ctrl.Call(m, "SubscribeNotification", arg0, arg1)
84 ret0, _ := ret[0].(api.SubscriptionCtx)
85 ret1, _ := ret[1].(error)
89 // SubscribeNotification indicates an expected call of SubscribeNotification
90 func (mr *MockChannelMockRecorder) SubscribeNotification(arg0, arg1 interface{}) *gomock.Call {
91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeNotification", reflect.TypeOf((*MockChannel)(nil).SubscribeNotification), arg0, arg1)