-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_outbound_message_builder.go
386 lines (332 loc) · 15.9 KB
/
mock_outbound_message_builder.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
// Copyright (C) 2019-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lasthyphen/dijetsnodesgo/message (interfaces: OutboundMsgBuilder)
// Package message is a generated GoMock package.
package message
import (
reflect "reflect"
time "time"
gomock "github.com/golang/mock/gomock"
ids "github.com/lasthyphen/dijetsnodesgo/ids"
p2p "github.com/lasthyphen/dijetsnodesgo/proto/pb/p2p"
ips "github.com/lasthyphen/dijetsnodesgo/utils/ips"
)
// MockOutboundMsgBuilder is a mock of OutboundMsgBuilder interface.
type MockOutboundMsgBuilder struct {
ctrl *gomock.Controller
recorder *MockOutboundMsgBuilderMockRecorder
}
// MockOutboundMsgBuilderMockRecorder is the mock recorder for MockOutboundMsgBuilder.
type MockOutboundMsgBuilderMockRecorder struct {
mock *MockOutboundMsgBuilder
}
// NewMockOutboundMsgBuilder creates a new mock instance.
func NewMockOutboundMsgBuilder(ctrl *gomock.Controller) *MockOutboundMsgBuilder {
mock := &MockOutboundMsgBuilder{ctrl: ctrl}
mock.recorder = &MockOutboundMsgBuilderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOutboundMsgBuilder) EXPECT() *MockOutboundMsgBuilderMockRecorder {
return m.recorder
}
// Accepted mocks base method.
func (m *MockOutboundMsgBuilder) Accepted(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Accepted", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Accepted indicates an expected call of Accepted.
func (mr *MockOutboundMsgBuilderMockRecorder) Accepted(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Accepted", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Accepted), arg0, arg1, arg2)
}
// AcceptedFrontier mocks base method.
func (m *MockOutboundMsgBuilder) AcceptedFrontier(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AcceptedFrontier", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AcceptedFrontier indicates an expected call of AcceptedFrontier.
func (mr *MockOutboundMsgBuilderMockRecorder) AcceptedFrontier(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptedFrontier", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).AcceptedFrontier), arg0, arg1, arg2)
}
// AcceptedStateSummary mocks base method.
func (m *MockOutboundMsgBuilder) AcceptedStateSummary(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AcceptedStateSummary", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AcceptedStateSummary indicates an expected call of AcceptedStateSummary.
func (mr *MockOutboundMsgBuilderMockRecorder) AcceptedStateSummary(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptedStateSummary", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).AcceptedStateSummary), arg0, arg1, arg2)
}
// Ancestors mocks base method.
func (m *MockOutboundMsgBuilder) Ancestors(arg0 ids.ID, arg1 uint32, arg2 [][]byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Ancestors", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Ancestors indicates an expected call of Ancestors.
func (mr *MockOutboundMsgBuilderMockRecorder) Ancestors(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ancestors", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Ancestors), arg0, arg1, arg2)
}
// AppGossip mocks base method.
func (m *MockOutboundMsgBuilder) AppGossip(arg0 ids.ID, arg1 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AppGossip", arg0, arg1)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AppGossip indicates an expected call of AppGossip.
func (mr *MockOutboundMsgBuilderMockRecorder) AppGossip(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppGossip", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).AppGossip), arg0, arg1)
}
// AppRequest mocks base method.
func (m *MockOutboundMsgBuilder) AppRequest(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AppRequest", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AppRequest indicates an expected call of AppRequest.
func (mr *MockOutboundMsgBuilderMockRecorder) AppRequest(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppRequest", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).AppRequest), arg0, arg1, arg2, arg3)
}
// AppResponse mocks base method.
func (m *MockOutboundMsgBuilder) AppResponse(arg0 ids.ID, arg1 uint32, arg2 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AppResponse", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AppResponse indicates an expected call of AppResponse.
func (mr *MockOutboundMsgBuilderMockRecorder) AppResponse(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppResponse", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).AppResponse), arg0, arg1, arg2)
}
// Chits mocks base method.
func (m *MockOutboundMsgBuilder) Chits(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Chits", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Chits indicates an expected call of Chits.
func (mr *MockOutboundMsgBuilderMockRecorder) Chits(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Chits", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Chits), arg0, arg1, arg2)
}
// Get mocks base method.
func (m *MockOutboundMsgBuilder) Get(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockOutboundMsgBuilderMockRecorder) Get(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Get), arg0, arg1, arg2, arg3)
}
// GetAccepted mocks base method.
func (m *MockOutboundMsgBuilder) GetAccepted(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccepted", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccepted indicates an expected call of GetAccepted.
func (mr *MockOutboundMsgBuilderMockRecorder) GetAccepted(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccepted", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).GetAccepted), arg0, arg1, arg2, arg3)
}
// GetAcceptedFrontier mocks base method.
func (m *MockOutboundMsgBuilder) GetAcceptedFrontier(arg0 ids.ID, arg1 uint32, arg2 time.Duration) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAcceptedFrontier", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAcceptedFrontier indicates an expected call of GetAcceptedFrontier.
func (mr *MockOutboundMsgBuilderMockRecorder) GetAcceptedFrontier(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAcceptedFrontier", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).GetAcceptedFrontier), arg0, arg1, arg2)
}
// GetAcceptedStateSummary mocks base method.
func (m *MockOutboundMsgBuilder) GetAcceptedStateSummary(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []uint64) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAcceptedStateSummary", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAcceptedStateSummary indicates an expected call of GetAcceptedStateSummary.
func (mr *MockOutboundMsgBuilderMockRecorder) GetAcceptedStateSummary(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAcceptedStateSummary", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).GetAcceptedStateSummary), arg0, arg1, arg2, arg3)
}
// GetAncestors mocks base method.
func (m *MockOutboundMsgBuilder) GetAncestors(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAncestors", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAncestors indicates an expected call of GetAncestors.
func (mr *MockOutboundMsgBuilderMockRecorder) GetAncestors(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAncestors", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).GetAncestors), arg0, arg1, arg2, arg3)
}
// GetStateSummaryFrontier mocks base method.
func (m *MockOutboundMsgBuilder) GetStateSummaryFrontier(arg0 ids.ID, arg1 uint32, arg2 time.Duration) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStateSummaryFrontier", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetStateSummaryFrontier indicates an expected call of GetStateSummaryFrontier.
func (mr *MockOutboundMsgBuilderMockRecorder) GetStateSummaryFrontier(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStateSummaryFrontier", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).GetStateSummaryFrontier), arg0, arg1, arg2)
}
// PeerList mocks base method.
func (m *MockOutboundMsgBuilder) PeerList(arg0 []ips.ClaimedIPPort, arg1 bool) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PeerList", arg0, arg1)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PeerList indicates an expected call of PeerList.
func (mr *MockOutboundMsgBuilderMockRecorder) PeerList(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerList", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).PeerList), arg0, arg1)
}
// PeerListAck mocks base method.
func (m *MockOutboundMsgBuilder) PeerListAck(arg0 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PeerListAck", arg0)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PeerListAck indicates an expected call of PeerListAck.
func (mr *MockOutboundMsgBuilderMockRecorder) PeerListAck(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeerListAck", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).PeerListAck), arg0)
}
// Ping mocks base method.
func (m *MockOutboundMsgBuilder) Ping() (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Ping")
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Ping indicates an expected call of Ping.
func (mr *MockOutboundMsgBuilderMockRecorder) Ping() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Ping))
}
// Pong mocks base method.
func (m *MockOutboundMsgBuilder) Pong(arg0 uint32, arg1 []*p2p.SubnetUptime) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Pong", arg0, arg1)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Pong indicates an expected call of Pong.
func (mr *MockOutboundMsgBuilderMockRecorder) Pong(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pong", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Pong), arg0, arg1)
}
// PullQuery mocks base method.
func (m *MockOutboundMsgBuilder) PullQuery(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PullQuery", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PullQuery indicates an expected call of PullQuery.
func (mr *MockOutboundMsgBuilderMockRecorder) PullQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PullQuery", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).PullQuery), arg0, arg1, arg2, arg3)
}
// PushQuery mocks base method.
func (m *MockOutboundMsgBuilder) PushQuery(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PushQuery", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PushQuery indicates an expected call of PushQuery.
func (mr *MockOutboundMsgBuilderMockRecorder) PushQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushQuery", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).PushQuery), arg0, arg1, arg2, arg3)
}
// Put mocks base method.
func (m *MockOutboundMsgBuilder) Put(arg0 ids.ID, arg1 uint32, arg2 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Put indicates an expected call of Put.
func (mr *MockOutboundMsgBuilderMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Put), arg0, arg1, arg2)
}
// StateSummaryFrontier mocks base method.
func (m *MockOutboundMsgBuilder) StateSummaryFrontier(arg0 ids.ID, arg1 uint32, arg2 []byte) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StateSummaryFrontier", arg0, arg1, arg2)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StateSummaryFrontier indicates an expected call of StateSummaryFrontier.
func (mr *MockOutboundMsgBuilderMockRecorder) StateSummaryFrontier(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSummaryFrontier", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).StateSummaryFrontier), arg0, arg1, arg2)
}
// Version mocks base method.
func (m *MockOutboundMsgBuilder) Version(arg0 uint32, arg1 uint64, arg2 ips.IPPort, arg3 string, arg4 uint64, arg5 []byte, arg6 []ids.ID) (OutboundMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Version", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
ret0, _ := ret[0].(OutboundMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Version indicates an expected call of Version.
func (mr *MockOutboundMsgBuilderMockRecorder) Version(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockOutboundMsgBuilder)(nil).Version), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
}