blob: 25e76ed1d31f596e6efb28ee56c4ee1e404061c8 [file] [log] [blame]
Koren Lev19ca78f2018-11-21 18:46:54 +02001// 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.
5package main
6
7import (
Koren Lev19ca78f2018-11-21 18:46:54 +02008 reflect "reflect"
9 time "time"
Adrian Villin5a4c7a92024-09-26 11:24:34 +020010
11 api "git.fd.io/govpp.git/api"
12 gomock "github.com/golang/mock/gomock"
Koren Lev19ca78f2018-11-21 18:46:54 +020013)
14
15// MockChannel is a mock of Channel interface
16type MockChannel struct {
17 ctrl *gomock.Controller
18 recorder *MockChannelMockRecorder
19}
20
21// MockChannelMockRecorder is the mock recorder for MockChannel
22type MockChannelMockRecorder struct {
23 mock *MockChannel
24}
25
26// NewMockChannel creates a new mock instance
27func 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
34func (m *MockChannel) EXPECT() *MockChannelMockRecorder {
35 return m.recorder
36}
37
38// Close mocks base method
39func (m *MockChannel) Close() {
40 m.ctrl.Call(m, "Close")
41}
42
43// Close indicates an expected call of Close
44func (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
49func (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
56func (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
61func (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
68func (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
73func (m *MockChannel) SetReplyTimeout(arg0 time.Duration) {
74 m.ctrl.Call(m, "SetReplyTimeout", arg0)
75}
76
77// SetReplyTimeout indicates an expected call of SetReplyTimeout
78func (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
83func (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
91func (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}