This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmocks.go
300 lines (253 loc) · 11.7 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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
// Code generated by MockGen. DO NOT EDIT.
// Source: x/ibc_query/types/expected_keepers.go
// Package mock_types is a generated GoMock package.
package keeper
import (
reflect "reflect"
types "github.com/cosmos/cosmos-sdk/types"
types0 "github.com/cosmos/cosmos-sdk/x/capability/types"
types1 "github.com/cosmos/ibc-go/v5/modules/core/03-connection/types"
types2 "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types"
exported "github.com/cosmos/ibc-go/v5/modules/core/exported"
gomock "github.com/golang/mock/gomock"
)
// MockICS4Wrapper is a mock of ICS4Wrapper interface.
type MockICS4Wrapper struct {
ctrl *gomock.Controller
recorder *MockICS4WrapperMockRecorder
}
// MockICS4WrapperMockRecorder is the mock recorder for MockICS4Wrapper.
type MockICS4WrapperMockRecorder struct {
mock *MockICS4Wrapper
}
// NewMockICS4Wrapper creates a new mock instance.
func NewMockICS4Wrapper(ctrl *gomock.Controller) *MockICS4Wrapper {
mock := &MockICS4Wrapper{ctrl: ctrl}
mock.recorder = &MockICS4WrapperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockICS4Wrapper) EXPECT() *MockICS4WrapperMockRecorder {
return m.recorder
}
// SendPacket mocks base method.
func (m *MockICS4Wrapper) SendPacket(ctx types.Context, channelCap *types0.Capability, packet exported.PacketI) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendPacket", ctx, channelCap, packet)
ret0, _ := ret[0].(error)
return ret0
}
// SendPacket indicates an expected call of SendPacket.
func (mr *MockICS4WrapperMockRecorder) SendPacket(ctx, channelCap, packet interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPacket", reflect.TypeOf((*MockICS4Wrapper)(nil).SendPacket), ctx, channelCap, packet)
}
// MockChannelKeeper is a mock of ChannelKeeper interface.
type MockChannelKeeper struct {
ctrl *gomock.Controller
recorder *MockChannelKeeperMockRecorder
}
// MockChannelKeeperMockRecorder is the mock recorder for MockChannelKeeper.
type MockChannelKeeperMockRecorder struct {
mock *MockChannelKeeper
}
// NewMockChannelKeeper creates a new mock instance.
func NewMockChannelKeeper(ctrl *gomock.Controller) *MockChannelKeeper {
mock := &MockChannelKeeper{ctrl: ctrl}
mock.recorder = &MockChannelKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder {
return m.recorder
}
// GetChannel mocks base method.
func (m *MockChannelKeeper) GetChannel(ctx types.Context, srcPort, srcChan string) (types2.Channel, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChannel", ctx, srcPort, srcChan)
ret0, _ := ret[0].(types2.Channel)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetChannel indicates an expected call of GetChannel.
func (mr *MockChannelKeeperMockRecorder) GetChannel(ctx, srcPort, srcChan interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChannel", reflect.TypeOf((*MockChannelKeeper)(nil).GetChannel), ctx, srcPort, srcChan)
}
// GetNextSequenceSend mocks base method.
func (m *MockChannelKeeper) GetNextSequenceSend(ctx types.Context, portID, channelID string) (uint64, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNextSequenceSend", ctx, portID, channelID)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetNextSequenceSend indicates an expected call of GetNextSequenceSend.
func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(ctx, portID, channelID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextSequenceSend", reflect.TypeOf((*MockChannelKeeper)(nil).GetNextSequenceSend), ctx, portID, channelID)
}
// MockClientKeeper is a mock of ClientKeeper interface.
type MockClientKeeper struct {
ctrl *gomock.Controller
recorder *MockClientKeeperMockRecorder
}
// MockClientKeeperMockRecorder is the mock recorder for MockClientKeeper.
type MockClientKeeperMockRecorder struct {
mock *MockClientKeeper
}
// NewMockClientKeeper creates a new mock instance.
func NewMockClientKeeper(ctrl *gomock.Controller) *MockClientKeeper {
mock := &MockClientKeeper{ctrl: ctrl}
mock.recorder = &MockClientKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClientKeeper) EXPECT() *MockClientKeeperMockRecorder {
return m.recorder
}
// GetClientConsensusState mocks base method.
func (m *MockClientKeeper) GetClientConsensusState(ctx types.Context, clientID string) (exported.ConsensusState, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetClientConsensusState", ctx, clientID)
ret0, _ := ret[0].(exported.ConsensusState)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetClientConsensusState indicates an expected call of GetClientConsensusState.
func (mr *MockClientKeeperMockRecorder) GetClientConsensusState(ctx, clientID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientConsensusState", reflect.TypeOf((*MockClientKeeper)(nil).GetClientConsensusState), ctx, clientID)
}
// MockConnectionKeeper is a mock of ConnectionKeeper interface.
type MockConnectionKeeper struct {
ctrl *gomock.Controller
recorder *MockConnectionKeeperMockRecorder
}
// MockConnectionKeeperMockRecorder is the mock recorder for MockConnectionKeeper.
type MockConnectionKeeperMockRecorder struct {
mock *MockConnectionKeeper
}
// NewMockConnectionKeeper creates a new mock instance.
func NewMockConnectionKeeper(ctrl *gomock.Controller) *MockConnectionKeeper {
mock := &MockConnectionKeeper{ctrl: ctrl}
mock.recorder = &MockConnectionKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockConnectionKeeper) EXPECT() *MockConnectionKeeperMockRecorder {
return m.recorder
}
// GetConnection mocks base method.
func (m *MockConnectionKeeper) GetConnection(ctx types.Context, connectionID string) (types1.ConnectionEnd, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConnection", ctx, connectionID)
ret0, _ := ret[0].(types1.ConnectionEnd)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetConnection indicates an expected call of GetConnection.
func (mr *MockConnectionKeeperMockRecorder) GetConnection(ctx, connectionID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnection", reflect.TypeOf((*MockConnectionKeeper)(nil).GetConnection), ctx, connectionID)
}
// MockPortKeeper is a mock of PortKeeper interface.
type MockPortKeeper struct {
ctrl *gomock.Controller
recorder *MockPortKeeperMockRecorder
}
// MockPortKeeperMockRecorder is the mock recorder for MockPortKeeper.
type MockPortKeeperMockRecorder struct {
mock *MockPortKeeper
}
// NewMockPortKeeper creates a new mock instance.
func NewMockPortKeeper(ctrl *gomock.Controller) *MockPortKeeper {
mock := &MockPortKeeper{ctrl: ctrl}
mock.recorder = &MockPortKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPortKeeper) EXPECT() *MockPortKeeperMockRecorder {
return m.recorder
}
// BindPort mocks base method.
func (m *MockPortKeeper) BindPort(ctx types.Context, portID string) *types0.Capability {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BindPort", ctx, portID)
ret0, _ := ret[0].(*types0.Capability)
return ret0
}
// BindPort indicates an expected call of BindPort.
func (mr *MockPortKeeperMockRecorder) BindPort(ctx, portID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BindPort", reflect.TypeOf((*MockPortKeeper)(nil).BindPort), ctx, portID)
}
// MockScopedKeeper is a mock of ScopedKeeper interface.
type MockScopedKeeper struct {
ctrl *gomock.Controller
recorder *MockScopedKeeperMockRecorder
}
// MockScopedKeeperMockRecorder is the mock recorder for MockScopedKeeper.
type MockScopedKeeperMockRecorder struct {
mock *MockScopedKeeper
}
// NewMockScopedKeeper creates a new mock instance.
func NewMockScopedKeeper(ctrl *gomock.Controller) *MockScopedKeeper {
mock := &MockScopedKeeper{ctrl: ctrl}
mock.recorder = &MockScopedKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockScopedKeeper) EXPECT() *MockScopedKeeperMockRecorder {
return m.recorder
}
// AuthenticateCapability mocks base method.
func (m *MockScopedKeeper) AuthenticateCapability(ctx types.Context, cap *types0.Capability, name string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AuthenticateCapability", ctx, cap, name)
ret0, _ := ret[0].(bool)
return ret0
}
// AuthenticateCapability indicates an expected call of AuthenticateCapability.
func (mr *MockScopedKeeperMockRecorder) AuthenticateCapability(ctx, cap, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticateCapability", reflect.TypeOf((*MockScopedKeeper)(nil).AuthenticateCapability), ctx, cap, name)
}
// ClaimCapability mocks base method.
func (m *MockScopedKeeper) ClaimCapability(ctx types.Context, cap *types0.Capability, name string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ClaimCapability", ctx, cap, name)
ret0, _ := ret[0].(error)
return ret0
}
// ClaimCapability indicates an expected call of ClaimCapability.
func (mr *MockScopedKeeperMockRecorder) ClaimCapability(ctx, cap, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimCapability", reflect.TypeOf((*MockScopedKeeper)(nil).ClaimCapability), ctx, cap, name)
}
// GetCapability mocks base method.
func (m *MockScopedKeeper) GetCapability(ctx types.Context, name string) (*types0.Capability, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCapability", ctx, name)
ret0, _ := ret[0].(*types0.Capability)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetCapability indicates an expected call of GetCapability.
func (mr *MockScopedKeeperMockRecorder) GetCapability(ctx, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCapability", reflect.TypeOf((*MockScopedKeeper)(nil).GetCapability), ctx, name)
}
// NewCapability mocks base method.
func (m *MockScopedKeeper) NewCapability(ctx types.Context, name string) (*types0.Capability, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCapability", ctx, name)
ret0, _ := ret[0].(*types0.Capability)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NewCapability indicates an expected call of NewCapability.
func (mr *MockScopedKeeperMockRecorder) NewCapability(ctx, name interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCapability", reflect.TypeOf((*MockScopedKeeper)(nil).NewCapability), ctx, name)
}