-
Notifications
You must be signed in to change notification settings - Fork 374
/
mock_log_server.go
245 lines (211 loc) · 10.9 KB
/
mock_log_server.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/google/trillian (interfaces: TrillianLogServer)
// Package tmock is a generated GoMock package.
package tmock
import (
context "context"
gomock "github.com/golang/mock/gomock"
trillian "github.com/google/trillian"
reflect "reflect"
)
// MockTrillianLogServer is a mock of TrillianLogServer interface
type MockTrillianLogServer struct {
ctrl *gomock.Controller
recorder *MockTrillianLogServerMockRecorder
}
// MockTrillianLogServerMockRecorder is the mock recorder for MockTrillianLogServer
type MockTrillianLogServerMockRecorder struct {
mock *MockTrillianLogServer
}
// NewMockTrillianLogServer creates a new mock instance
func NewMockTrillianLogServer(ctrl *gomock.Controller) *MockTrillianLogServer {
mock := &MockTrillianLogServer{ctrl: ctrl}
mock.recorder = &MockTrillianLogServerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTrillianLogServer) EXPECT() *MockTrillianLogServerMockRecorder {
return m.recorder
}
// AddSequencedLeaf mocks base method
func (m *MockTrillianLogServer) AddSequencedLeaf(arg0 context.Context, arg1 *trillian.AddSequencedLeafRequest) (*trillian.AddSequencedLeafResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddSequencedLeaf", arg0, arg1)
ret0, _ := ret[0].(*trillian.AddSequencedLeafResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddSequencedLeaf indicates an expected call of AddSequencedLeaf
func (mr *MockTrillianLogServerMockRecorder) AddSequencedLeaf(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaf", reflect.TypeOf((*MockTrillianLogServer)(nil).AddSequencedLeaf), arg0, arg1)
}
// AddSequencedLeaves mocks base method
func (m *MockTrillianLogServer) AddSequencedLeaves(arg0 context.Context, arg1 *trillian.AddSequencedLeavesRequest) (*trillian.AddSequencedLeavesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddSequencedLeaves", arg0, arg1)
ret0, _ := ret[0].(*trillian.AddSequencedLeavesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddSequencedLeaves indicates an expected call of AddSequencedLeaves
func (mr *MockTrillianLogServerMockRecorder) AddSequencedLeaves(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSequencedLeaves", reflect.TypeOf((*MockTrillianLogServer)(nil).AddSequencedLeaves), arg0, arg1)
}
// GetConsistencyProof mocks base method
func (m *MockTrillianLogServer) GetConsistencyProof(arg0 context.Context, arg1 *trillian.GetConsistencyProofRequest) (*trillian.GetConsistencyProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConsistencyProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetConsistencyProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetConsistencyProof indicates an expected call of GetConsistencyProof
func (mr *MockTrillianLogServerMockRecorder) GetConsistencyProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsistencyProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetConsistencyProof), arg0, arg1)
}
// GetEntryAndProof mocks base method
func (m *MockTrillianLogServer) GetEntryAndProof(arg0 context.Context, arg1 *trillian.GetEntryAndProofRequest) (*trillian.GetEntryAndProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEntryAndProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetEntryAndProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetEntryAndProof indicates an expected call of GetEntryAndProof
func (mr *MockTrillianLogServerMockRecorder) GetEntryAndProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEntryAndProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetEntryAndProof), arg0, arg1)
}
// GetInclusionProof mocks base method
func (m *MockTrillianLogServer) GetInclusionProof(arg0 context.Context, arg1 *trillian.GetInclusionProofRequest) (*trillian.GetInclusionProofResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInclusionProof", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetInclusionProofResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetInclusionProof indicates an expected call of GetInclusionProof
func (mr *MockTrillianLogServerMockRecorder) GetInclusionProof(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProof", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProof), arg0, arg1)
}
// GetInclusionProofByHash mocks base method
func (m *MockTrillianLogServer) GetInclusionProofByHash(arg0 context.Context, arg1 *trillian.GetInclusionProofByHashRequest) (*trillian.GetInclusionProofByHashResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInclusionProofByHash", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetInclusionProofByHashResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetInclusionProofByHash indicates an expected call of GetInclusionProofByHash
func (mr *MockTrillianLogServerMockRecorder) GetInclusionProofByHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInclusionProofByHash", reflect.TypeOf((*MockTrillianLogServer)(nil).GetInclusionProofByHash), arg0, arg1)
}
// GetLatestSignedLogRoot mocks base method
func (m *MockTrillianLogServer) GetLatestSignedLogRoot(arg0 context.Context, arg1 *trillian.GetLatestSignedLogRootRequest) (*trillian.GetLatestSignedLogRootResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLatestSignedLogRoot", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLatestSignedLogRootResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLatestSignedLogRoot indicates an expected call of GetLatestSignedLogRoot
func (mr *MockTrillianLogServerMockRecorder) GetLatestSignedLogRoot(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestSignedLogRoot", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLatestSignedLogRoot), arg0, arg1)
}
// GetLeavesByHash mocks base method
func (m *MockTrillianLogServer) GetLeavesByHash(arg0 context.Context, arg1 *trillian.GetLeavesByHashRequest) (*trillian.GetLeavesByHashResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLeavesByHash", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLeavesByHashResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLeavesByHash indicates an expected call of GetLeavesByHash
func (mr *MockTrillianLogServerMockRecorder) GetLeavesByHash(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByHash", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByHash), arg0, arg1)
}
// GetLeavesByIndex mocks base method
func (m *MockTrillianLogServer) GetLeavesByIndex(arg0 context.Context, arg1 *trillian.GetLeavesByIndexRequest) (*trillian.GetLeavesByIndexResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLeavesByIndex", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLeavesByIndexResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLeavesByIndex indicates an expected call of GetLeavesByIndex
func (mr *MockTrillianLogServerMockRecorder) GetLeavesByIndex(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByIndex", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByIndex), arg0, arg1)
}
// GetLeavesByRange mocks base method
func (m *MockTrillianLogServer) GetLeavesByRange(arg0 context.Context, arg1 *trillian.GetLeavesByRangeRequest) (*trillian.GetLeavesByRangeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLeavesByRange", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetLeavesByRangeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLeavesByRange indicates an expected call of GetLeavesByRange
func (mr *MockTrillianLogServerMockRecorder) GetLeavesByRange(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLeavesByRange", reflect.TypeOf((*MockTrillianLogServer)(nil).GetLeavesByRange), arg0, arg1)
}
// GetSequencedLeafCount mocks base method
func (m *MockTrillianLogServer) GetSequencedLeafCount(arg0 context.Context, arg1 *trillian.GetSequencedLeafCountRequest) (*trillian.GetSequencedLeafCountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSequencedLeafCount", arg0, arg1)
ret0, _ := ret[0].(*trillian.GetSequencedLeafCountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSequencedLeafCount indicates an expected call of GetSequencedLeafCount
func (mr *MockTrillianLogServerMockRecorder) GetSequencedLeafCount(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSequencedLeafCount", reflect.TypeOf((*MockTrillianLogServer)(nil).GetSequencedLeafCount), arg0, arg1)
}
// InitLog mocks base method
func (m *MockTrillianLogServer) InitLog(arg0 context.Context, arg1 *trillian.InitLogRequest) (*trillian.InitLogResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitLog", arg0, arg1)
ret0, _ := ret[0].(*trillian.InitLogResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InitLog indicates an expected call of InitLog
func (mr *MockTrillianLogServerMockRecorder) InitLog(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitLog", reflect.TypeOf((*MockTrillianLogServer)(nil).InitLog), arg0, arg1)
}
// QueueLeaf mocks base method
func (m *MockTrillianLogServer) QueueLeaf(arg0 context.Context, arg1 *trillian.QueueLeafRequest) (*trillian.QueueLeafResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueueLeaf", arg0, arg1)
ret0, _ := ret[0].(*trillian.QueueLeafResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueueLeaf indicates an expected call of QueueLeaf
func (mr *MockTrillianLogServerMockRecorder) QueueLeaf(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaf", reflect.TypeOf((*MockTrillianLogServer)(nil).QueueLeaf), arg0, arg1)
}
// QueueLeaves mocks base method
func (m *MockTrillianLogServer) QueueLeaves(arg0 context.Context, arg1 *trillian.QueueLeavesRequest) (*trillian.QueueLeavesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueueLeaves", arg0, arg1)
ret0, _ := ret[0].(*trillian.QueueLeavesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueueLeaves indicates an expected call of QueueLeaves
func (mr *MockTrillianLogServerMockRecorder) QueueLeaves(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLeaves", reflect.TypeOf((*MockTrillianLogServer)(nil).QueueLeaves), arg0, arg1)
}