-
Notifications
You must be signed in to change notification settings - Fork 19
/
market_position_mock.go
187 lines (158 loc) · 5.8 KB
/
market_position_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
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
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/settlement (interfaces: MarketPosition)
// 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"
)
// MockMarketPosition is a mock of MarketPosition interface.
type MockMarketPosition struct {
ctrl *gomock.Controller
recorder *MockMarketPositionMockRecorder
}
// MockMarketPositionMockRecorder is the mock recorder for MockMarketPosition.
type MockMarketPositionMockRecorder struct {
mock *MockMarketPosition
}
// NewMockMarketPosition creates a new mock instance.
func NewMockMarketPosition(ctrl *gomock.Controller) *MockMarketPosition {
mock := &MockMarketPosition{ctrl: ctrl}
mock.recorder = &MockMarketPositionMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMarketPosition) EXPECT() *MockMarketPositionMockRecorder {
return m.recorder
}
// AverageEntryPrice mocks base method.
func (m *MockMarketPosition) AverageEntryPrice() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AverageEntryPrice")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// AverageEntryPrice indicates an expected call of AverageEntryPrice.
func (mr *MockMarketPositionMockRecorder) AverageEntryPrice() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AverageEntryPrice", reflect.TypeOf((*MockMarketPosition)(nil).AverageEntryPrice))
}
// Buy mocks base method.
func (m *MockMarketPosition) Buy() int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Buy")
ret0, _ := ret[0].(int64)
return ret0
}
// Buy indicates an expected call of Buy.
func (mr *MockMarketPositionMockRecorder) Buy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Buy", reflect.TypeOf((*MockMarketPosition)(nil).Buy))
}
// BuySumProduct mocks base method.
func (m *MockMarketPosition) BuySumProduct() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BuySumProduct")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// BuySumProduct indicates an expected call of BuySumProduct.
func (mr *MockMarketPositionMockRecorder) BuySumProduct() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuySumProduct", reflect.TypeOf((*MockMarketPosition)(nil).BuySumProduct))
}
// ClearPotentials mocks base method.
func (m *MockMarketPosition) ClearPotentials() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ClearPotentials")
}
// ClearPotentials indicates an expected call of ClearPotentials.
func (mr *MockMarketPositionMockRecorder) ClearPotentials() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearPotentials", reflect.TypeOf((*MockMarketPosition)(nil).ClearPotentials))
}
// Party mocks base method.
func (m *MockMarketPosition) Party() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Party")
ret0, _ := ret[0].(string)
return ret0
}
// Party indicates an expected call of Party.
func (mr *MockMarketPositionMockRecorder) Party() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Party", reflect.TypeOf((*MockMarketPosition)(nil).Party))
}
// Price mocks base method.
func (m *MockMarketPosition) Price() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Price")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// Price indicates an expected call of Price.
func (mr *MockMarketPositionMockRecorder) Price() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Price", reflect.TypeOf((*MockMarketPosition)(nil).Price))
}
// Sell mocks base method.
func (m *MockMarketPosition) Sell() int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Sell")
ret0, _ := ret[0].(int64)
return ret0
}
// Sell indicates an expected call of Sell.
func (mr *MockMarketPositionMockRecorder) Sell() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sell", reflect.TypeOf((*MockMarketPosition)(nil).Sell))
}
// SellSumProduct mocks base method.
func (m *MockMarketPosition) SellSumProduct() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SellSumProduct")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// SellSumProduct indicates an expected call of SellSumProduct.
func (mr *MockMarketPositionMockRecorder) SellSumProduct() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SellSumProduct", reflect.TypeOf((*MockMarketPosition)(nil).SellSumProduct))
}
// Size mocks base method.
func (m *MockMarketPosition) Size() int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Size")
ret0, _ := ret[0].(int64)
return ret0
}
// Size indicates an expected call of Size.
func (mr *MockMarketPositionMockRecorder) Size() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockMarketPosition)(nil).Size))
}
// VWBuy mocks base method.
func (m *MockMarketPosition) VWBuy() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VWBuy")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// VWBuy indicates an expected call of VWBuy.
func (mr *MockMarketPositionMockRecorder) VWBuy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VWBuy", reflect.TypeOf((*MockMarketPosition)(nil).VWBuy))
}
// VWSell mocks base method.
func (m *MockMarketPosition) VWSell() *num.Uint {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VWSell")
ret0, _ := ret[0].(*num.Uint)
return ret0
}
// VWSell indicates an expected call of VWSell.
func (mr *MockMarketPositionMockRecorder) VWSell() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VWSell", reflect.TypeOf((*MockMarketPosition)(nil).VWSell))
}