-
Notifications
You must be signed in to change notification settings - Fork 19
/
broker_mock.go
128 lines (107 loc) · 4.11 KB
/
broker_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/broker (interfaces: Interface)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
events "code.vegaprotocol.io/vega/core/events"
broker "code.vegaprotocol.io/vega/libs/broker"
gomock "github.com/golang/mock/gomock"
)
// MockInterface is a mock of Interface interface.
type MockInterface struct {
ctrl *gomock.Controller
recorder *MockInterfaceMockRecorder
}
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
type MockInterfaceMockRecorder struct {
mock *MockInterface
}
// NewMockInterface creates a new mock instance.
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
mock := &MockInterface{ctrl: ctrl}
mock.recorder = &MockInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
return m.recorder
}
// Send mocks base method.
func (m *MockInterface) Send(arg0 events.Event) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Send", arg0)
}
// Send indicates an expected call of Send.
func (mr *MockInterfaceMockRecorder) Send(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockInterface)(nil).Send), arg0)
}
// SendBatch mocks base method.
func (m *MockInterface) SendBatch(arg0 []events.Event) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SendBatch", arg0)
}
// SendBatch indicates an expected call of SendBatch.
func (mr *MockInterfaceMockRecorder) SendBatch(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBatch", reflect.TypeOf((*MockInterface)(nil).SendBatch), arg0)
}
// SetStreaming mocks base method.
func (m *MockInterface) SetStreaming(arg0 bool) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetStreaming", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// SetStreaming indicates an expected call of SetStreaming.
func (mr *MockInterfaceMockRecorder) SetStreaming(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStreaming", reflect.TypeOf((*MockInterface)(nil).SetStreaming), arg0)
}
// Stage mocks base method.
func (m *MockInterface) Stage(arg0 events.Event) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stage", arg0)
}
// Stage indicates an expected call of Stage.
func (mr *MockInterfaceMockRecorder) Stage(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stage", reflect.TypeOf((*MockInterface)(nil).Stage), arg0)
}
// Subscribe mocks base method.
func (m *MockInterface) Subscribe(arg0 broker.Subscriber) int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Subscribe", arg0)
ret0, _ := ret[0].(int)
return ret0
}
// Subscribe indicates an expected call of Subscribe.
func (mr *MockInterfaceMockRecorder) Subscribe(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockInterface)(nil).Subscribe), arg0)
}
// SubscribeBatch mocks base method.
func (m *MockInterface) SubscribeBatch(arg0 ...broker.Subscriber) {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "SubscribeBatch", varargs...)
}
// SubscribeBatch indicates an expected call of SubscribeBatch.
func (mr *MockInterfaceMockRecorder) SubscribeBatch(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeBatch", reflect.TypeOf((*MockInterface)(nil).SubscribeBatch), arg0...)
}
// Unsubscribe mocks base method.
func (m *MockInterface) Unsubscribe(arg0 int) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Unsubscribe", arg0)
}
// Unsubscribe indicates an expected call of Unsubscribe.
func (mr *MockInterfaceMockRecorder) Unsubscribe(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unsubscribe", reflect.TypeOf((*MockInterface)(nil).Unsubscribe), arg0)
}