-
Notifications
You must be signed in to change notification settings - Fork 450
/
persist_mock.go
188 lines (160 loc) · 6.24 KB
/
persist_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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/m3db/m3/src/dbnode/persist/types.go
// Copyright (c) 2018 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Package persist is a generated GoMock package.
package persist
import (
"reflect"
"github.com/golang/mock/gomock"
)
// MockManager is a mock of Manager interface
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// StartDataPersist mocks base method
func (m *MockManager) StartDataPersist() (DataFlush, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartDataPersist")
ret0, _ := ret[0].(DataFlush)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StartDataPersist indicates an expected call of StartDataPersist
func (mr *MockManagerMockRecorder) StartDataPersist() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataPersist", reflect.TypeOf((*MockManager)(nil).StartDataPersist))
}
// StartIndexPersist mocks base method
func (m *MockManager) StartIndexPersist() (IndexFlush, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartIndexPersist")
ret0, _ := ret[0].(IndexFlush)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StartIndexPersist indicates an expected call of StartIndexPersist
func (mr *MockManagerMockRecorder) StartIndexPersist() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartIndexPersist", reflect.TypeOf((*MockManager)(nil).StartIndexPersist))
}
// MockDataFlush is a mock of DataFlush interface
type MockDataFlush struct {
ctrl *gomock.Controller
recorder *MockDataFlushMockRecorder
}
// MockDataFlushMockRecorder is the mock recorder for MockDataFlush
type MockDataFlushMockRecorder struct {
mock *MockDataFlush
}
// NewMockDataFlush creates a new mock instance
func NewMockDataFlush(ctrl *gomock.Controller) *MockDataFlush {
mock := &MockDataFlush{ctrl: ctrl}
mock.recorder = &MockDataFlushMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockDataFlush) EXPECT() *MockDataFlushMockRecorder {
return m.recorder
}
// PrepareData mocks base method
func (m *MockDataFlush) PrepareData(opts DataPrepareOptions) (PreparedDataPersist, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrepareData", opts)
ret0, _ := ret[0].(PreparedDataPersist)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrepareData indicates an expected call of PrepareData
func (mr *MockDataFlushMockRecorder) PrepareData(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareData", reflect.TypeOf((*MockDataFlush)(nil).PrepareData), opts)
}
// DoneData mocks base method
func (m *MockDataFlush) DoneData() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DoneData")
ret0, _ := ret[0].(error)
return ret0
}
// DoneData indicates an expected call of DoneData
func (mr *MockDataFlushMockRecorder) DoneData() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DoneData", reflect.TypeOf((*MockDataFlush)(nil).DoneData))
}
// MockIndexFlush is a mock of IndexFlush interface
type MockIndexFlush struct {
ctrl *gomock.Controller
recorder *MockIndexFlushMockRecorder
}
// MockIndexFlushMockRecorder is the mock recorder for MockIndexFlush
type MockIndexFlushMockRecorder struct {
mock *MockIndexFlush
}
// NewMockIndexFlush creates a new mock instance
func NewMockIndexFlush(ctrl *gomock.Controller) *MockIndexFlush {
mock := &MockIndexFlush{ctrl: ctrl}
mock.recorder = &MockIndexFlushMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIndexFlush) EXPECT() *MockIndexFlushMockRecorder {
return m.recorder
}
// PrepareIndex mocks base method
func (m *MockIndexFlush) PrepareIndex(opts IndexPrepareOptions) (PreparedIndexPersist, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrepareIndex", opts)
ret0, _ := ret[0].(PreparedIndexPersist)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrepareIndex indicates an expected call of PrepareIndex
func (mr *MockIndexFlushMockRecorder) PrepareIndex(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareIndex", reflect.TypeOf((*MockIndexFlush)(nil).PrepareIndex), opts)
}
// DoneIndex mocks base method
func (m *MockIndexFlush) DoneIndex() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DoneIndex")
ret0, _ := ret[0].(error)
return ret0
}
// DoneIndex indicates an expected call of DoneIndex
func (mr *MockIndexFlushMockRecorder) DoneIndex() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DoneIndex", reflect.TypeOf((*MockIndexFlush)(nil).DoneIndex))
}