-
Notifications
You must be signed in to change notification settings - Fork 22
/
mocks.go
139 lines (116 loc) · 4.51 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
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/liquidity (interfaces: RiskModel,PriceMonitor,IDGen)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
num "code.vegaprotocol.io/vega/libs/num"
gomock "github.com/golang/mock/gomock"
decimal "github.com/shopspring/decimal"
)
// MockRiskModel is a mock of RiskModel interface.
type MockRiskModel struct {
ctrl *gomock.Controller
recorder *MockRiskModelMockRecorder
}
// MockRiskModelMockRecorder is the mock recorder for MockRiskModel.
type MockRiskModelMockRecorder struct {
mock *MockRiskModel
}
// NewMockRiskModel creates a new mock instance.
func NewMockRiskModel(ctrl *gomock.Controller) *MockRiskModel {
mock := &MockRiskModel{ctrl: ctrl}
mock.recorder = &MockRiskModelMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockRiskModel) EXPECT() *MockRiskModelMockRecorder {
return m.recorder
}
// GetProjectionHorizon mocks base method.
func (m *MockRiskModel) 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 *MockRiskModelMockRecorder) GetProjectionHorizon() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectionHorizon", reflect.TypeOf((*MockRiskModel)(nil).GetProjectionHorizon))
}
// ProbabilityOfTrading mocks base method.
func (m *MockRiskModel) 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 *MockRiskModelMockRecorder) 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((*MockRiskModel)(nil).ProbabilityOfTrading), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
}
// MockPriceMonitor is a mock of PriceMonitor interface.
type MockPriceMonitor struct {
ctrl *gomock.Controller
recorder *MockPriceMonitorMockRecorder
}
// MockPriceMonitorMockRecorder is the mock recorder for MockPriceMonitor.
type MockPriceMonitorMockRecorder struct {
mock *MockPriceMonitor
}
// NewMockPriceMonitor creates a new mock instance.
func NewMockPriceMonitor(ctrl *gomock.Controller) *MockPriceMonitor {
mock := &MockPriceMonitor{ctrl: ctrl}
mock.recorder = &MockPriceMonitorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPriceMonitor) EXPECT() *MockPriceMonitorMockRecorder {
return m.recorder
}
// GetValidPriceRange mocks base method.
func (m *MockPriceMonitor) GetValidPriceRange() (num.WrappedDecimal, num.WrappedDecimal) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValidPriceRange")
ret0, _ := ret[0].(num.WrappedDecimal)
ret1, _ := ret[1].(num.WrappedDecimal)
return ret0, ret1
}
// GetValidPriceRange indicates an expected call of GetValidPriceRange.
func (mr *MockPriceMonitorMockRecorder) GetValidPriceRange() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidPriceRange", reflect.TypeOf((*MockPriceMonitor)(nil).GetValidPriceRange))
}
// MockIDGen is a mock of IDGen interface.
type MockIDGen struct {
ctrl *gomock.Controller
recorder *MockIDGenMockRecorder
}
// MockIDGenMockRecorder is the mock recorder for MockIDGen.
type MockIDGenMockRecorder struct {
mock *MockIDGen
}
// NewMockIDGen creates a new mock instance.
func NewMockIDGen(ctrl *gomock.Controller) *MockIDGen {
mock := &MockIDGen{ctrl: ctrl}
mock.recorder = &MockIDGenMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIDGen) EXPECT() *MockIDGenMockRecorder {
return m.recorder
}
// NextID mocks base method.
func (m *MockIDGen) NextID() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NextID")
ret0, _ := ret[0].(string)
return ret0
}
// NextID indicates an expected call of NextID.
func (mr *MockIDGenMockRecorder) NextID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextID", reflect.TypeOf((*MockIDGen)(nil).NextID))
}