-
Notifications
You must be signed in to change notification settings - Fork 39
/
iterator_mock.go
156 lines (131 loc) · 4.29 KB
/
iterator_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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./iterator.go
//
// Generated by this command:
//
// mockgen -source=./iterator.go -destination=./iterator_mock.go -package=sqldb
//
// Package sqldb is a generated GoMock package.
package sqldb
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockIterator is a mock of Iterator interface.
type MockIterator struct {
ctrl *gomock.Controller
recorder *MockIteratorMockRecorder
}
// MockIteratorMockRecorder is the mock recorder for MockIterator.
type MockIteratorMockRecorder struct {
mock *MockIterator
}
// NewMockIterator creates a new mock instance.
func NewMockIterator(ctrl *gomock.Controller) *MockIterator {
mock := &MockIterator{ctrl: ctrl}
mock.recorder = &MockIteratorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder {
return m.recorder
}
// Error mocks base method.
func (m *MockIterator) Error() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Error")
ret0, _ := ret[0].(error)
return ret0
}
// Error indicates an expected call of Error.
func (mr *MockIteratorMockRecorder) Error() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockIterator)(nil).Error))
}
// IsValid mocks base method.
func (m *MockIterator) IsValid() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsValid")
ret0, _ := ret[0].(bool)
return ret0
}
// IsValid indicates an expected call of IsValid.
func (mr *MockIteratorMockRecorder) IsValid() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValid", reflect.TypeOf((*MockIterator)(nil).IsValid))
}
// Key mocks base method.
func (m *MockIterator) Key() any {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Key")
ret0, _ := ret[0].(any)
return ret0
}
// Key indicates an expected call of Key.
func (mr *MockIteratorMockRecorder) Key() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockIterator)(nil).Key))
}
// Next mocks base method.
func (m *MockIterator) Next() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Next")
}
// Next indicates an expected call of Next.
func (mr *MockIteratorMockRecorder) Next() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next))
}
// Release mocks base method.
func (m *MockIterator) Release() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Release")
}
// Release indicates an expected call of Release.
func (mr *MockIteratorMockRecorder) Release() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Release", reflect.TypeOf((*MockIterator)(nil).Release))
}
// Value mocks base method.
func (m *MockIterator) Value() any {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Value")
ret0, _ := ret[0].(any)
return ret0
}
// Value indicates an expected call of Value.
func (mr *MockIteratorMockRecorder) Value() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockIterator)(nil).Value))
}
// MockIteratee is a mock of Iteratee interface.
type MockIteratee struct {
ctrl *gomock.Controller
recorder *MockIterateeMockRecorder
}
// MockIterateeMockRecorder is the mock recorder for MockIteratee.
type MockIterateeMockRecorder struct {
mock *MockIteratee
}
// NewMockIteratee creates a new mock instance.
func NewMockIteratee(ctrl *gomock.Controller) *MockIteratee {
mock := &MockIteratee{ctrl: ctrl}
mock.recorder = &MockIterateeMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIteratee) EXPECT() *MockIterateeMockRecorder {
return m.recorder
}
// NewIterator mocks base method.
func (m *MockIteratee) NewIterator(start any) Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewIterator", start)
ret0, _ := ret[0].(Iterator)
return ret0
}
// NewIterator indicates an expected call of NewIterator.
func (mr *MockIterateeMockRecorder) NewIterator(start any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewIterator", reflect.TypeOf((*MockIteratee)(nil).NewIterator), start)
}