-
Notifications
You must be signed in to change notification settings - Fork 265
/
types_mock.go
641 lines (542 loc) · 21.4 KB
/
types_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
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
// Code generated by MockGen. DO NOT EDIT.
// Source: ../types.go
// Package mock_frontend is a generated GoMock package.
package mock_frontend
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
batch "github.com/matrixorigin/matrixone/pkg/container/batch"
types "github.com/matrixorigin/matrixone/pkg/container/types"
plan "github.com/matrixorigin/matrixone/pkg/pb/plan"
tree "github.com/matrixorigin/matrixone/pkg/sql/parsers/tree"
util "github.com/matrixorigin/matrixone/pkg/util"
process "github.com/matrixorigin/matrixone/pkg/vm/process"
)
// MockComputationRunner is a mock of ComputationRunner interface.
type MockComputationRunner struct {
ctrl *gomock.Controller
recorder *MockComputationRunnerMockRecorder
}
// MockComputationRunnerMockRecorder is the mock recorder for MockComputationRunner.
type MockComputationRunnerMockRecorder struct {
mock *MockComputationRunner
}
// NewMockComputationRunner creates a new mock instance.
func NewMockComputationRunner(ctrl *gomock.Controller) *MockComputationRunner {
mock := &MockComputationRunner{ctrl: ctrl}
mock.recorder = &MockComputationRunnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockComputationRunner) EXPECT() *MockComputationRunnerMockRecorder {
return m.recorder
}
// Run mocks base method.
func (m *MockComputationRunner) Run(ts uint64) (*util.RunResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", ts)
ret0, _ := ret[0].(*util.RunResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Run indicates an expected call of Run.
func (mr *MockComputationRunnerMockRecorder) Run(ts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockComputationRunner)(nil).Run), ts)
}
// MockComputationWrapper is a mock of ComputationWrapper interface.
type MockComputationWrapper struct {
ctrl *gomock.Controller
recorder *MockComputationWrapperMockRecorder
}
// MockComputationWrapperMockRecorder is the mock recorder for MockComputationWrapper.
type MockComputationWrapperMockRecorder struct {
mock *MockComputationWrapper
}
// NewMockComputationWrapper creates a new mock instance.
func NewMockComputationWrapper(ctrl *gomock.Controller) *MockComputationWrapper {
mock := &MockComputationWrapper{ctrl: ctrl}
mock.recorder = &MockComputationWrapperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockComputationWrapper) EXPECT() *MockComputationWrapperMockRecorder {
return m.recorder
}
// Clear mocks base method.
func (m *MockComputationWrapper) Clear() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Clear")
}
// Clear indicates an expected call of Clear.
func (mr *MockComputationWrapperMockRecorder) Clear() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockComputationWrapper)(nil).Clear))
}
// Compile mocks base method.
func (m *MockComputationWrapper) Compile(any any, fill func(*batch.Batch) error) (interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Compile", any, fill)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Compile indicates an expected call of Compile.
func (mr *MockComputationWrapperMockRecorder) Compile(any, fill interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compile", reflect.TypeOf((*MockComputationWrapper)(nil).Compile), any, fill)
}
// Free mocks base method.
func (m *MockComputationWrapper) Free() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Free")
}
// Free indicates an expected call of Free.
func (mr *MockComputationWrapperMockRecorder) Free() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Free", reflect.TypeOf((*MockComputationWrapper)(nil).Free))
}
// GetAst mocks base method.
func (m *MockComputationWrapper) GetAst() tree.Statement {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAst")
ret0, _ := ret[0].(tree.Statement)
return ret0
}
// GetAst indicates an expected call of GetAst.
func (mr *MockComputationWrapperMockRecorder) GetAst() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAst", reflect.TypeOf((*MockComputationWrapper)(nil).GetAst))
}
// GetColumns mocks base method.
func (m *MockComputationWrapper) GetColumns(ctx context.Context) ([]interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetColumns", ctx)
ret0, _ := ret[0].([]interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetColumns indicates an expected call of GetColumns.
func (mr *MockComputationWrapperMockRecorder) GetColumns(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumns", reflect.TypeOf((*MockComputationWrapper)(nil).GetColumns), ctx)
}
// GetLoadTag mocks base method.
func (m *MockComputationWrapper) GetLoadTag() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLoadTag")
ret0, _ := ret[0].(bool)
return ret0
}
// GetLoadTag indicates an expected call of GetLoadTag.
func (mr *MockComputationWrapperMockRecorder) GetLoadTag() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLoadTag", reflect.TypeOf((*MockComputationWrapper)(nil).GetLoadTag))
}
// GetProcess mocks base method.
func (m *MockComputationWrapper) GetProcess() *process.Process {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProcess")
ret0, _ := ret[0].(*process.Process)
return ret0
}
// GetProcess indicates an expected call of GetProcess.
func (mr *MockComputationWrapperMockRecorder) GetProcess() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProcess", reflect.TypeOf((*MockComputationWrapper)(nil).GetProcess))
}
// GetServerStatus mocks base method.
func (m *MockComputationWrapper) GetServerStatus() uint16 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetServerStatus")
ret0, _ := ret[0].(uint16)
return ret0
}
// GetServerStatus indicates an expected call of GetServerStatus.
func (mr *MockComputationWrapperMockRecorder) GetServerStatus() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServerStatus", reflect.TypeOf((*MockComputationWrapper)(nil).GetServerStatus))
}
// GetUUID mocks base method.
func (m *MockComputationWrapper) GetUUID() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUUID")
ret0, _ := ret[0].([]byte)
return ret0
}
// GetUUID indicates an expected call of GetUUID.
func (mr *MockComputationWrapperMockRecorder) GetUUID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUUID", reflect.TypeOf((*MockComputationWrapper)(nil).GetUUID))
}
// Plan mocks base method.
func (m *MockComputationWrapper) Plan() *plan.Plan {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Plan")
ret0, _ := ret[0].(*plan.Plan)
return ret0
}
// Plan indicates an expected call of Plan.
func (mr *MockComputationWrapperMockRecorder) Plan() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Plan", reflect.TypeOf((*MockComputationWrapper)(nil).Plan))
}
// RecordExecPlan mocks base method.
func (m *MockComputationWrapper) RecordExecPlan(ctx context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RecordExecPlan", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// RecordExecPlan indicates an expected call of RecordExecPlan.
func (mr *MockComputationWrapperMockRecorder) RecordExecPlan(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordExecPlan", reflect.TypeOf((*MockComputationWrapper)(nil).RecordExecPlan), ctx)
}
// ResetPlanAndStmt mocks base method.
func (m *MockComputationWrapper) ResetPlanAndStmt(stmt tree.Statement) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ResetPlanAndStmt", stmt)
}
// ResetPlanAndStmt indicates an expected call of ResetPlanAndStmt.
func (mr *MockComputationWrapperMockRecorder) ResetPlanAndStmt(stmt interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetPlanAndStmt", reflect.TypeOf((*MockComputationWrapper)(nil).ResetPlanAndStmt), stmt)
}
// Run mocks base method.
func (m *MockComputationWrapper) Run(ts uint64) (*util.RunResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", ts)
ret0, _ := ret[0].(*util.RunResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Run indicates an expected call of Run.
func (mr *MockComputationWrapperMockRecorder) Run(ts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockComputationWrapper)(nil).Run), ts)
}
// MockColumnInfo is a mock of ColumnInfo interface.
type MockColumnInfo struct {
ctrl *gomock.Controller
recorder *MockColumnInfoMockRecorder
}
// MockColumnInfoMockRecorder is the mock recorder for MockColumnInfo.
type MockColumnInfoMockRecorder struct {
mock *MockColumnInfo
}
// NewMockColumnInfo creates a new mock instance.
func NewMockColumnInfo(ctrl *gomock.Controller) *MockColumnInfo {
mock := &MockColumnInfo{ctrl: ctrl}
mock.recorder = &MockColumnInfoMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockColumnInfo) EXPECT() *MockColumnInfoMockRecorder {
return m.recorder
}
// GetName mocks base method.
func (m *MockColumnInfo) GetName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetName")
ret0, _ := ret[0].(string)
return ret0
}
// GetName indicates an expected call of GetName.
func (mr *MockColumnInfoMockRecorder) GetName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetName", reflect.TypeOf((*MockColumnInfo)(nil).GetName))
}
// GetType mocks base method.
func (m *MockColumnInfo) GetType() types.T {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetType")
ret0, _ := ret[0].(types.T)
return ret0
}
// GetType indicates an expected call of GetType.
func (mr *MockColumnInfoMockRecorder) GetType() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetType", reflect.TypeOf((*MockColumnInfo)(nil).GetType))
}
// MockTableInfo is a mock of TableInfo interface.
type MockTableInfo struct {
ctrl *gomock.Controller
recorder *MockTableInfoMockRecorder
}
// MockTableInfoMockRecorder is the mock recorder for MockTableInfo.
type MockTableInfoMockRecorder struct {
mock *MockTableInfo
}
// NewMockTableInfo creates a new mock instance.
func NewMockTableInfo(ctrl *gomock.Controller) *MockTableInfo {
mock := &MockTableInfo{ctrl: ctrl}
mock.recorder = &MockTableInfoMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTableInfo) EXPECT() *MockTableInfoMockRecorder {
return m.recorder
}
// GetColumns mocks base method.
func (m *MockTableInfo) GetColumns() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "GetColumns")
}
// GetColumns indicates an expected call of GetColumns.
func (mr *MockTableInfoMockRecorder) GetColumns() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumns", reflect.TypeOf((*MockTableInfo)(nil).GetColumns))
}
// MockExecResult is a mock of ExecResult interface.
type MockExecResult struct {
ctrl *gomock.Controller
recorder *MockExecResultMockRecorder
}
// MockExecResultMockRecorder is the mock recorder for MockExecResult.
type MockExecResultMockRecorder struct {
mock *MockExecResult
}
// NewMockExecResult creates a new mock instance.
func NewMockExecResult(ctrl *gomock.Controller) *MockExecResult {
mock := &MockExecResult{ctrl: ctrl}
mock.recorder = &MockExecResultMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockExecResult) EXPECT() *MockExecResultMockRecorder {
return m.recorder
}
// GetInt64 mocks base method.
func (m *MockExecResult) GetInt64(ctx context.Context, rindex, cindex uint64) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInt64", ctx, rindex, cindex)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetInt64 indicates an expected call of GetInt64.
func (mr *MockExecResultMockRecorder) GetInt64(ctx, rindex, cindex interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInt64", reflect.TypeOf((*MockExecResult)(nil).GetInt64), ctx, rindex, cindex)
}
// GetRowCount mocks base method.
func (m *MockExecResult) GetRowCount() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRowCount")
ret0, _ := ret[0].(uint64)
return ret0
}
// GetRowCount indicates an expected call of GetRowCount.
func (mr *MockExecResultMockRecorder) GetRowCount() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRowCount", reflect.TypeOf((*MockExecResult)(nil).GetRowCount))
}
// GetString mocks base method.
func (m *MockExecResult) GetString(ctx context.Context, rindex, cindex uint64) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetString", ctx, rindex, cindex)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetString indicates an expected call of GetString.
func (mr *MockExecResultMockRecorder) GetString(ctx, rindex, cindex interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetString", reflect.TypeOf((*MockExecResult)(nil).GetString), ctx, rindex, cindex)
}
// GetUint64 mocks base method.
func (m *MockExecResult) GetUint64(ctx context.Context, rindex, cindex uint64) (uint64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUint64", ctx, rindex, cindex)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetUint64 indicates an expected call of GetUint64.
func (mr *MockExecResultMockRecorder) GetUint64(ctx, rindex, cindex interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUint64", reflect.TypeOf((*MockExecResult)(nil).GetUint64), ctx, rindex, cindex)
}
// MockBackgroundExec is a mock of BackgroundExec interface.
type MockBackgroundExec struct {
ctrl *gomock.Controller
recorder *MockBackgroundExecMockRecorder
}
// MockBackgroundExecMockRecorder is the mock recorder for MockBackgroundExec.
type MockBackgroundExecMockRecorder struct {
mock *MockBackgroundExec
}
// NewMockBackgroundExec creates a new mock instance.
func NewMockBackgroundExec(ctrl *gomock.Controller) *MockBackgroundExec {
mock := &MockBackgroundExec{ctrl: ctrl}
mock.recorder = &MockBackgroundExecMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBackgroundExec) EXPECT() *MockBackgroundExecMockRecorder {
return m.recorder
}
// Clear mocks base method.
func (m *MockBackgroundExec) Clear() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Clear")
}
// Clear indicates an expected call of Clear.
func (mr *MockBackgroundExecMockRecorder) Clear() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockBackgroundExec)(nil).Clear))
}
// ClearExecResultBatches mocks base method.
func (m *MockBackgroundExec) ClearExecResultBatches() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ClearExecResultBatches")
}
// ClearExecResultBatches indicates an expected call of ClearExecResultBatches.
func (mr *MockBackgroundExecMockRecorder) ClearExecResultBatches() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearExecResultBatches", reflect.TypeOf((*MockBackgroundExec)(nil).ClearExecResultBatches))
}
// ClearExecResultSet mocks base method.
func (m *MockBackgroundExec) ClearExecResultSet() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ClearExecResultSet")
}
// ClearExecResultSet indicates an expected call of ClearExecResultSet.
func (mr *MockBackgroundExecMockRecorder) ClearExecResultSet() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearExecResultSet", reflect.TypeOf((*MockBackgroundExec)(nil).ClearExecResultSet))
}
// Close mocks base method.
func (m *MockBackgroundExec) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockBackgroundExecMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockBackgroundExec)(nil).Close))
}
// Exec mocks base method.
func (m *MockBackgroundExec) Exec(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Exec", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Exec indicates an expected call of Exec.
func (mr *MockBackgroundExecMockRecorder) Exec(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockBackgroundExec)(nil).Exec), arg0, arg1)
}
// ExecStmt mocks base method.
func (m *MockBackgroundExec) ExecStmt(arg0 context.Context, arg1 tree.Statement) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExecStmt", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// ExecStmt indicates an expected call of ExecStmt.
func (mr *MockBackgroundExecMockRecorder) ExecStmt(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecStmt", reflect.TypeOf((*MockBackgroundExec)(nil).ExecStmt), arg0, arg1)
}
func (m *MockBackgroundExec) ExecRestore(arg0 context.Context, arg1 string, arg2 uint32, arg3 uint32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ExecStmt", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
func (mr *MockBackgroundExecMockRecorder) ExecRestore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecStmt", reflect.TypeOf((*MockBackgroundExec)(nil).ExecStmt), arg0, arg1, arg2, arg3)
}
// GetExecResultBatches mocks base method.
func (m *MockBackgroundExec) GetExecResultBatches() []*batch.Batch {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetExecResultBatches")
ret0, _ := ret[0].([]*batch.Batch)
return ret0
}
// GetExecResultBatches indicates an expected call of GetExecResultBatches.
func (mr *MockBackgroundExecMockRecorder) GetExecResultBatches() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExecResultBatches", reflect.TypeOf((*MockBackgroundExec)(nil).GetExecResultBatches))
}
// GetExecResultSet mocks base method.
func (m *MockBackgroundExec) GetExecResultSet() []interface{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetExecResultSet")
ret0, _ := ret[0].([]interface{})
return ret0
}
// GetExecResultSet indicates an expected call of GetExecResultSet.
func (mr *MockBackgroundExecMockRecorder) GetExecResultSet() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExecResultSet", reflect.TypeOf((*MockBackgroundExec)(nil).GetExecResultSet))
}
// MockoutputPool is a mock of outputPool interface.
type MockoutputPool struct {
ctrl *gomock.Controller
recorder *MockoutputPoolMockRecorder
}
// MockoutputPoolMockRecorder is the mock recorder for MockoutputPool.
type MockoutputPoolMockRecorder struct {
mock *MockoutputPool
}
// NewMockoutputPool creates a new mock instance.
func NewMockoutputPool(ctrl *gomock.Controller) *MockoutputPool {
mock := &MockoutputPool{ctrl: ctrl}
mock.recorder = &MockoutputPoolMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockoutputPool) EXPECT() *MockoutputPoolMockRecorder {
return m.recorder
}
// flush mocks base method.
func (m *MockoutputPool) flush() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "flush")
ret0, _ := ret[0].(error)
return ret0
}
// flush indicates an expected call of flush.
func (mr *MockoutputPoolMockRecorder) flush() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "flush", reflect.TypeOf((*MockoutputPool)(nil).flush))
}
// getEmptyRow mocks base method.
func (m *MockoutputPool) getEmptyRow() ([]interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getEmptyRow")
ret0, _ := ret[0].([]interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// getEmptyRow indicates an expected call of getEmptyRow.
func (mr *MockoutputPoolMockRecorder) getEmptyRow() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getEmptyRow", reflect.TypeOf((*MockoutputPool)(nil).getEmptyRow))
}
// reset mocks base method.
func (m *MockoutputPool) reset() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "reset")
}
// reset indicates an expected call of reset.
func (mr *MockoutputPoolMockRecorder) reset() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "reset", reflect.TypeOf((*MockoutputPool)(nil).reset))
}
// resetLineStr mocks base method.
func (m *MockoutputPool) resetLineStr() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "resetLineStr")
}
// resetLineStr indicates an expected call of resetLineStr.
func (mr *MockoutputPoolMockRecorder) resetLineStr() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "resetLineStr", reflect.TypeOf((*MockoutputPool)(nil).resetLineStr))
}