Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 1 | // Code generated by MockGen. DO NOT EDIT. |
| 2 | // Source: git.fd.io/govpp.git/api (Interfaces: Channel) |
| 3 | |
| 4 | // Package mock_api is a generated GoMock package. |
| 5 | package main |
| 6 | |
| 7 | import ( |
Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 8 | reflect "reflect" |
| 9 | time "time" |
Adrian Villin | 5a4c7a9 | 2024-09-26 11:24:34 +0200 | [diff] [blame] | 10 | |
| 11 | api "git.fd.io/govpp.git/api" |
| 12 | gomock "github.com/golang/mock/gomock" |
Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 13 | ) |
| 14 | |
| 15 | // MockChannel is a mock of Channel interface |
| 16 | type MockChannel struct { |
| 17 | ctrl *gomock.Controller |
| 18 | recorder *MockChannelMockRecorder |
| 19 | } |
| 20 | |
| 21 | // MockChannelMockRecorder is the mock recorder for MockChannel |
| 22 | type MockChannelMockRecorder struct { |
| 23 | mock *MockChannel |
| 24 | } |
| 25 | |
| 26 | // NewMockChannel creates a new mock instance |
| 27 | func NewMockChannel(ctrl *gomock.Controller) *MockChannel { |
| 28 | mock := &MockChannel{ctrl: ctrl} |
| 29 | mock.recorder = &MockChannelMockRecorder{mock} |
| 30 | return mock |
| 31 | } |
| 32 | |
| 33 | // EXPECT returns an object that allows the caller to indicate expected use |
| 34 | func (m *MockChannel) EXPECT() *MockChannelMockRecorder { |
| 35 | return m.recorder |
| 36 | } |
| 37 | |
| 38 | // Close mocks base method |
| 39 | func (m *MockChannel) Close() { |
| 40 | m.ctrl.Call(m, "Close") |
| 41 | } |
| 42 | |
| 43 | // Close indicates an expected call of Close |
| 44 | func (mr *MockChannelMockRecorder) Close() *gomock.Call { |
| 45 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockChannel)(nil).Close)) |
| 46 | } |
| 47 | |
| 48 | // SendMultiRequest mocks base method |
| 49 | func (m *MockChannel) SendMultiRequest(arg0 api.Message) api.MultiRequestCtx { |
| 50 | ret := m.ctrl.Call(m, "SendMultiRequest", arg0) |
| 51 | ret0, _ := ret[0].(api.MultiRequestCtx) |
| 52 | return ret0 |
| 53 | } |
| 54 | |
| 55 | // SendMultiRequest indicates an expected call of SendMultiRequest |
| 56 | func (mr *MockChannelMockRecorder) SendMultiRequest(arg0 interface{}) *gomock.Call { |
| 57 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMultiRequest", reflect.TypeOf((*MockChannel)(nil).SendMultiRequest), arg0) |
| 58 | } |
| 59 | |
| 60 | // SendRequest mocks base method |
| 61 | func (m *MockChannel) SendRequest(arg0 api.Message) api.RequestCtx { |
| 62 | ret := m.ctrl.Call(m, "SendRequest", arg0) |
| 63 | ret0, _ := ret[0].(api.RequestCtx) |
| 64 | return ret0 |
| 65 | } |
| 66 | |
| 67 | // SendRequest indicates an expected call of SendRequest |
| 68 | func (mr *MockChannelMockRecorder) SendRequest(arg0 interface{}) *gomock.Call { |
| 69 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockChannel)(nil).SendRequest), arg0) |
| 70 | } |
| 71 | |
| 72 | // SetReplyTimeout mocks base method |
| 73 | func (m *MockChannel) SetReplyTimeout(arg0 time.Duration) { |
| 74 | m.ctrl.Call(m, "SetReplyTimeout", arg0) |
| 75 | } |
| 76 | |
| 77 | // SetReplyTimeout indicates an expected call of SetReplyTimeout |
| 78 | func (mr *MockChannelMockRecorder) SetReplyTimeout(arg0 interface{}) *gomock.Call { |
| 79 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReplyTimeout", reflect.TypeOf((*MockChannel)(nil).SetReplyTimeout), arg0) |
| 80 | } |
| 81 | |
| 82 | // SubscribeNotification mocks base method |
| 83 | func (m *MockChannel) SubscribeNotification(arg0 chan api.Message, arg1 api.Message) (api.SubscriptionCtx, error) { |
| 84 | ret := m.ctrl.Call(m, "SubscribeNotification", arg0, arg1) |
| 85 | ret0, _ := ret[0].(api.SubscriptionCtx) |
| 86 | ret1, _ := ret[1].(error) |
| 87 | return ret0, ret1 |
| 88 | } |
| 89 | |
| 90 | // SubscribeNotification indicates an expected call of SubscribeNotification |
| 91 | func (mr *MockChannelMockRecorder) SubscribeNotification(arg0, arg1 interface{}) *gomock.Call { |
| 92 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeNotification", reflect.TypeOf((*MockChannel)(nil).SubscribeNotification), arg0, arg1) |
| 93 | } |