-
Notifications
You must be signed in to change notification settings - Fork 19
/
mocks.go
285 lines (240 loc) · 9.81 KB
/
mocks.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/risk (interfaces: Orderbook,AuctionState,TimeService,StateVarEngine,Model)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
time "time"
types "code.vegaprotocol.io/vega/core/types"
statevar "code.vegaprotocol.io/vega/core/types/statevar"
num "code.vegaprotocol.io/vega/libs/num"
gomock "github.com/golang/mock/gomock"
decimal "github.com/shopspring/decimal"
)
// MockOrderbook is a mock of Orderbook interface.
type MockOrderbook struct {
ctrl *gomock.Controller
recorder *MockOrderbookMockRecorder
}
// MockOrderbookMockRecorder is the mock recorder for MockOrderbook.
type MockOrderbookMockRecorder struct {
mock *MockOrderbook
}
// NewMockOrderbook creates a new mock instance.
func NewMockOrderbook(ctrl *gomock.Controller) *MockOrderbook {
mock := &MockOrderbook{ctrl: ctrl}
mock.recorder = &MockOrderbookMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOrderbook) EXPECT() *MockOrderbookMockRecorder {
return m.recorder
}
// GetIndicativePrice mocks base method.
func (m *MockOrderbook) GetIndicativePrice() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetIndicativePrice")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// GetIndicativePrice indicates an expected call of GetIndicativePrice.
func (mr *MockOrderbookMockRecorder) GetIndicativePrice() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIndicativePrice", reflect.TypeOf((*MockOrderbook)(nil).GetIndicativePrice))
}
// MockAuctionState is a mock of AuctionState interface.
type MockAuctionState struct {
ctrl *gomock.Controller
recorder *MockAuctionStateMockRecorder
}
// MockAuctionStateMockRecorder is the mock recorder for MockAuctionState.
type MockAuctionStateMockRecorder struct {
mock *MockAuctionState
}
// NewMockAuctionState creates a new mock instance.
func NewMockAuctionState(ctrl *gomock.Controller) *MockAuctionState {
mock := &MockAuctionState{ctrl: ctrl}
mock.recorder = &MockAuctionStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuctionState) EXPECT() *MockAuctionStateMockRecorder {
return m.recorder
}
// CanLeave mocks base method.
func (m *MockAuctionState) CanLeave() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CanLeave")
ret0, _ := ret[0].(bool)
return ret0
}
// CanLeave indicates an expected call of CanLeave.
func (mr *MockAuctionStateMockRecorder) CanLeave() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanLeave", reflect.TypeOf((*MockAuctionState)(nil).CanLeave))
}
// InAuction mocks base method.
func (m *MockAuctionState) InAuction() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InAuction")
ret0, _ := ret[0].(bool)
return ret0
}
// InAuction indicates an expected call of InAuction.
func (mr *MockAuctionStateMockRecorder) InAuction() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InAuction", reflect.TypeOf((*MockAuctionState)(nil).InAuction))
}
// MockTimeService is a mock of TimeService interface.
type MockTimeService struct {
ctrl *gomock.Controller
recorder *MockTimeServiceMockRecorder
}
// MockTimeServiceMockRecorder is the mock recorder for MockTimeService.
type MockTimeServiceMockRecorder struct {
mock *MockTimeService
}
// NewMockTimeService creates a new mock instance.
func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService {
mock := &MockTimeService{ctrl: ctrl}
mock.recorder = &MockTimeServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder {
return m.recorder
}
// GetTimeNow mocks base method.
func (m *MockTimeService) GetTimeNow() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTimeNow")
ret0, _ := ret[0].(time.Time)
return ret0
}
// GetTimeNow indicates an expected call of GetTimeNow.
func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow))
}
// MockStateVarEngine is a mock of StateVarEngine interface.
type MockStateVarEngine struct {
ctrl *gomock.Controller
recorder *MockStateVarEngineMockRecorder
}
// MockStateVarEngineMockRecorder is the mock recorder for MockStateVarEngine.
type MockStateVarEngineMockRecorder struct {
mock *MockStateVarEngine
}
// NewMockStateVarEngine creates a new mock instance.
func NewMockStateVarEngine(ctrl *gomock.Controller) *MockStateVarEngine {
mock := &MockStateVarEngine{ctrl: ctrl}
mock.recorder = &MockStateVarEngineMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStateVarEngine) EXPECT() *MockStateVarEngineMockRecorder {
return m.recorder
}
// NewEvent mocks base method.
func (m *MockStateVarEngine) NewEvent(arg0, arg1 string, arg2 statevar.EventType) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "NewEvent", arg0, arg1, arg2)
}
// NewEvent indicates an expected call of NewEvent.
func (mr *MockStateVarEngineMockRecorder) NewEvent(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEvent", reflect.TypeOf((*MockStateVarEngine)(nil).NewEvent), arg0, arg1, arg2)
}
// RegisterStateVariable mocks base method.
func (m *MockStateVarEngine) RegisterStateVariable(arg0, arg1, arg2 string, arg3 statevar.Converter, arg4 func(string, statevar.FinaliseCalculation), arg5 []statevar.EventType, arg6 func(context.Context, statevar.StateVariableResult) error) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegisterStateVariable", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterStateVariable indicates an expected call of RegisterStateVariable.
func (mr *MockStateVarEngineMockRecorder) RegisterStateVariable(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterStateVariable", reflect.TypeOf((*MockStateVarEngine)(nil).RegisterStateVariable), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
}
// MockModel is a mock of Model interface.
type MockModel struct {
ctrl *gomock.Controller
recorder *MockModelMockRecorder
}
// MockModelMockRecorder is the mock recorder for MockModel.
type MockModelMockRecorder struct {
mock *MockModel
}
// NewMockModel creates a new mock instance.
func NewMockModel(ctrl *gomock.Controller) *MockModel {
mock := &MockModel{ctrl: ctrl}
mock.recorder = &MockModelMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockModel) EXPECT() *MockModelMockRecorder {
return m.recorder
}
// CalculateRiskFactors mocks base method.
func (m *MockModel) CalculateRiskFactors() *types.RiskFactor {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CalculateRiskFactors")
ret0, _ := ret[0].(*types.RiskFactor)
return ret0
}
// CalculateRiskFactors indicates an expected call of CalculateRiskFactors.
func (mr *MockModelMockRecorder) CalculateRiskFactors() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalculateRiskFactors", reflect.TypeOf((*MockModel)(nil).CalculateRiskFactors))
}
// DefaultRiskFactors mocks base method.
func (m *MockModel) DefaultRiskFactors() *types.RiskFactor {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DefaultRiskFactors")
ret0, _ := ret[0].(*types.RiskFactor)
return ret0
}
// DefaultRiskFactors indicates an expected call of DefaultRiskFactors.
func (mr *MockModelMockRecorder) DefaultRiskFactors() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultRiskFactors", reflect.TypeOf((*MockModel)(nil).DefaultRiskFactors))
}
// GetProjectionHorizon mocks base method.
func (m *MockModel) GetProjectionHorizon() decimal.Decimal {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProjectionHorizon")
ret0, _ := ret[0].(decimal.Decimal)
return ret0
}
// GetProjectionHorizon indicates an expected call of GetProjectionHorizon.
func (mr *MockModelMockRecorder) GetProjectionHorizon() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectionHorizon", reflect.TypeOf((*MockModel)(nil).GetProjectionHorizon))
}
// PriceRange mocks base method.
func (m *MockModel) PriceRange(arg0, arg1, arg2 decimal.Decimal) (decimal.Decimal, decimal.Decimal) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PriceRange", arg0, arg1, arg2)
ret0, _ := ret[0].(decimal.Decimal)
ret1, _ := ret[1].(decimal.Decimal)
return ret0, ret1
}
// PriceRange indicates an expected call of PriceRange.
func (mr *MockModelMockRecorder) PriceRange(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PriceRange", reflect.TypeOf((*MockModel)(nil).PriceRange), arg0, arg1, arg2)
}
// ProbabilityOfTrading mocks base method.
func (m *MockModel) ProbabilityOfTrading(arg0, arg1, arg2, arg3, arg4 decimal.Decimal, arg5, arg6 bool) decimal.Decimal {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ProbabilityOfTrading", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
ret0, _ := ret[0].(decimal.Decimal)
return ret0
}
// ProbabilityOfTrading indicates an expected call of ProbabilityOfTrading.
func (mr *MockModelMockRecorder) ProbabilityOfTrading(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProbabilityOfTrading", reflect.TypeOf((*MockModel)(nil).ProbabilityOfTrading), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
}