github.com/hyperledger/aries-framework-go@v0.3.2/pkg/internal/gomocks/spi/storage/mocks.gen.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/hyperledger/aries-framework-go/spi/storage (interfaces: Provider,Store) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 storage "github.com/hyperledger/aries-framework-go/spi/storage" 12 ) 13 14 // MockProvider is a mock of Provider interface. 15 type MockProvider struct { 16 ctrl *gomock.Controller 17 recorder *MockProviderMockRecorder 18 } 19 20 // MockProviderMockRecorder is the mock recorder for MockProvider. 21 type MockProviderMockRecorder struct { 22 mock *MockProvider 23 } 24 25 // NewMockProvider creates a new mock instance. 26 func NewMockProvider(ctrl *gomock.Controller) *MockProvider { 27 mock := &MockProvider{ctrl: ctrl} 28 mock.recorder = &MockProviderMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockProvider) EXPECT() *MockProviderMockRecorder { 34 return m.recorder 35 } 36 37 // Close mocks base method. 38 func (m *MockProvider) Close() error { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Close") 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // Close indicates an expected call of Close. 46 func (mr *MockProviderMockRecorder) Close() *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockProvider)(nil).Close)) 49 } 50 51 // GetOpenStores mocks base method. 52 func (m *MockProvider) GetOpenStores() []storage.Store { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "GetOpenStores") 55 ret0, _ := ret[0].([]storage.Store) 56 return ret0 57 } 58 59 // GetOpenStores indicates an expected call of GetOpenStores. 60 func (mr *MockProviderMockRecorder) GetOpenStores() *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenStores", reflect.TypeOf((*MockProvider)(nil).GetOpenStores)) 63 } 64 65 // GetStoreConfig mocks base method. 66 func (m *MockProvider) GetStoreConfig(arg0 string) (storage.StoreConfiguration, error) { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "GetStoreConfig", arg0) 69 ret0, _ := ret[0].(storage.StoreConfiguration) 70 ret1, _ := ret[1].(error) 71 return ret0, ret1 72 } 73 74 // GetStoreConfig indicates an expected call of GetStoreConfig. 75 func (mr *MockProviderMockRecorder) GetStoreConfig(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStoreConfig", reflect.TypeOf((*MockProvider)(nil).GetStoreConfig), arg0) 78 } 79 80 // OpenStore mocks base method. 81 func (m *MockProvider) OpenStore(arg0 string) (storage.Store, error) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "OpenStore", arg0) 84 ret0, _ := ret[0].(storage.Store) 85 ret1, _ := ret[1].(error) 86 return ret0, ret1 87 } 88 89 // OpenStore indicates an expected call of OpenStore. 90 func (mr *MockProviderMockRecorder) OpenStore(arg0 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStore", reflect.TypeOf((*MockProvider)(nil).OpenStore), arg0) 93 } 94 95 // SetStoreConfig mocks base method. 96 func (m *MockProvider) SetStoreConfig(arg0 string, arg1 storage.StoreConfiguration) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "SetStoreConfig", arg0, arg1) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // SetStoreConfig indicates an expected call of SetStoreConfig. 104 func (mr *MockProviderMockRecorder) SetStoreConfig(arg0, arg1 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStoreConfig", reflect.TypeOf((*MockProvider)(nil).SetStoreConfig), arg0, arg1) 107 } 108 109 // MockStore is a mock of Store interface. 110 type MockStore struct { 111 ctrl *gomock.Controller 112 recorder *MockStoreMockRecorder 113 } 114 115 // MockStoreMockRecorder is the mock recorder for MockStore. 116 type MockStoreMockRecorder struct { 117 mock *MockStore 118 } 119 120 // NewMockStore creates a new mock instance. 121 func NewMockStore(ctrl *gomock.Controller) *MockStore { 122 mock := &MockStore{ctrl: ctrl} 123 mock.recorder = &MockStoreMockRecorder{mock} 124 return mock 125 } 126 127 // EXPECT returns an object that allows the caller to indicate expected use. 128 func (m *MockStore) EXPECT() *MockStoreMockRecorder { 129 return m.recorder 130 } 131 132 // Batch mocks base method. 133 func (m *MockStore) Batch(arg0 []storage.Operation) error { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "Batch", arg0) 136 ret0, _ := ret[0].(error) 137 return ret0 138 } 139 140 // Batch indicates an expected call of Batch. 141 func (mr *MockStoreMockRecorder) Batch(arg0 interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Batch", reflect.TypeOf((*MockStore)(nil).Batch), arg0) 144 } 145 146 // Close mocks base method. 147 func (m *MockStore) Close() error { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "Close") 150 ret0, _ := ret[0].(error) 151 return ret0 152 } 153 154 // Close indicates an expected call of Close. 155 func (mr *MockStoreMockRecorder) Close() *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStore)(nil).Close)) 158 } 159 160 // Delete mocks base method. 161 func (m *MockStore) Delete(arg0 string) error { 162 m.ctrl.T.Helper() 163 ret := m.ctrl.Call(m, "Delete", arg0) 164 ret0, _ := ret[0].(error) 165 return ret0 166 } 167 168 // Delete indicates an expected call of Delete. 169 func (mr *MockStoreMockRecorder) Delete(arg0 interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStore)(nil).Delete), arg0) 172 } 173 174 // Flush mocks base method. 175 func (m *MockStore) Flush() error { 176 m.ctrl.T.Helper() 177 ret := m.ctrl.Call(m, "Flush") 178 ret0, _ := ret[0].(error) 179 return ret0 180 } 181 182 // Flush indicates an expected call of Flush. 183 func (mr *MockStoreMockRecorder) Flush() *gomock.Call { 184 mr.mock.ctrl.T.Helper() 185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockStore)(nil).Flush)) 186 } 187 188 // Get mocks base method. 189 func (m *MockStore) Get(arg0 string) ([]byte, error) { 190 m.ctrl.T.Helper() 191 ret := m.ctrl.Call(m, "Get", arg0) 192 ret0, _ := ret[0].([]byte) 193 ret1, _ := ret[1].(error) 194 return ret0, ret1 195 } 196 197 // Get indicates an expected call of Get. 198 func (mr *MockStoreMockRecorder) Get(arg0 interface{}) *gomock.Call { 199 mr.mock.ctrl.T.Helper() 200 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStore)(nil).Get), arg0) 201 } 202 203 // GetBulk mocks base method. 204 func (m *MockStore) GetBulk(arg0 ...string) ([][]byte, error) { 205 m.ctrl.T.Helper() 206 varargs := []interface{}{} 207 for _, a := range arg0 { 208 varargs = append(varargs, a) 209 } 210 ret := m.ctrl.Call(m, "GetBulk", varargs...) 211 ret0, _ := ret[0].([][]byte) 212 ret1, _ := ret[1].(error) 213 return ret0, ret1 214 } 215 216 // GetBulk indicates an expected call of GetBulk. 217 func (mr *MockStoreMockRecorder) GetBulk(arg0 ...interface{}) *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBulk", reflect.TypeOf((*MockStore)(nil).GetBulk), arg0...) 220 } 221 222 // GetTags mocks base method. 223 func (m *MockStore) GetTags(arg0 string) ([]storage.Tag, error) { 224 m.ctrl.T.Helper() 225 ret := m.ctrl.Call(m, "GetTags", arg0) 226 ret0, _ := ret[0].([]storage.Tag) 227 ret1, _ := ret[1].(error) 228 return ret0, ret1 229 } 230 231 // GetTags indicates an expected call of GetTags. 232 func (mr *MockStoreMockRecorder) GetTags(arg0 interface{}) *gomock.Call { 233 mr.mock.ctrl.T.Helper() 234 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTags", reflect.TypeOf((*MockStore)(nil).GetTags), arg0) 235 } 236 237 // Put mocks base method. 238 func (m *MockStore) Put(arg0 string, arg1 []byte, arg2 ...storage.Tag) error { 239 m.ctrl.T.Helper() 240 varargs := []interface{}{arg0, arg1} 241 for _, a := range arg2 { 242 varargs = append(varargs, a) 243 } 244 ret := m.ctrl.Call(m, "Put", varargs...) 245 ret0, _ := ret[0].(error) 246 return ret0 247 } 248 249 // Put indicates an expected call of Put. 250 func (mr *MockStoreMockRecorder) Put(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 251 mr.mock.ctrl.T.Helper() 252 varargs := append([]interface{}{arg0, arg1}, arg2...) 253 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockStore)(nil).Put), varargs...) 254 } 255 256 // Query mocks base method. 257 func (m *MockStore) Query(arg0 string, arg1 ...storage.QueryOption) (storage.Iterator, error) { 258 m.ctrl.T.Helper() 259 varargs := []interface{}{arg0} 260 for _, a := range arg1 { 261 varargs = append(varargs, a) 262 } 263 ret := m.ctrl.Call(m, "Query", varargs...) 264 ret0, _ := ret[0].(storage.Iterator) 265 ret1, _ := ret[1].(error) 266 return ret0, ret1 267 } 268 269 // Query indicates an expected call of Query. 270 func (mr *MockStoreMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call { 271 mr.mock.ctrl.T.Helper() 272 varargs := append([]interface{}{arg0}, arg1...) 273 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockStore)(nil).Query), varargs...) 274 }