github.com/m3db/m3@v1.5.0/src/cluster/kv/kv_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/cluster/kv/types.go
     3  
     4  // Copyright (c) 2021 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package kv is a generated GoMock package.
    25  package kv
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/golang/mock/gomock"
    31  	"github.com/golang/protobuf/proto"
    32  )
    33  
    34  // MockValue is a mock of Value interface.
    35  type MockValue struct {
    36  	ctrl     *gomock.Controller
    37  	recorder *MockValueMockRecorder
    38  }
    39  
    40  // MockValueMockRecorder is the mock recorder for MockValue.
    41  type MockValueMockRecorder struct {
    42  	mock *MockValue
    43  }
    44  
    45  // NewMockValue creates a new mock instance.
    46  func NewMockValue(ctrl *gomock.Controller) *MockValue {
    47  	mock := &MockValue{ctrl: ctrl}
    48  	mock.recorder = &MockValueMockRecorder{mock}
    49  	return mock
    50  }
    51  
    52  // EXPECT returns an object that allows the caller to indicate expected use.
    53  func (m *MockValue) EXPECT() *MockValueMockRecorder {
    54  	return m.recorder
    55  }
    56  
    57  // IsNewer mocks base method.
    58  func (m *MockValue) IsNewer(other Value) bool {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "IsNewer", other)
    61  	ret0, _ := ret[0].(bool)
    62  	return ret0
    63  }
    64  
    65  // IsNewer indicates an expected call of IsNewer.
    66  func (mr *MockValueMockRecorder) IsNewer(other interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewer", reflect.TypeOf((*MockValue)(nil).IsNewer), other)
    69  }
    70  
    71  // Unmarshal mocks base method.
    72  func (m *MockValue) Unmarshal(v proto.Message) error {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "Unmarshal", v)
    75  	ret0, _ := ret[0].(error)
    76  	return ret0
    77  }
    78  
    79  // Unmarshal indicates an expected call of Unmarshal.
    80  func (mr *MockValueMockRecorder) Unmarshal(v interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unmarshal", reflect.TypeOf((*MockValue)(nil).Unmarshal), v)
    83  }
    84  
    85  // Version mocks base method.
    86  func (m *MockValue) Version() int {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "Version")
    89  	ret0, _ := ret[0].(int)
    90  	return ret0
    91  }
    92  
    93  // Version indicates an expected call of Version.
    94  func (mr *MockValueMockRecorder) Version() *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockValue)(nil).Version))
    97  }
    98  
    99  // MockValueWatch is a mock of ValueWatch interface.
   100  type MockValueWatch struct {
   101  	ctrl     *gomock.Controller
   102  	recorder *MockValueWatchMockRecorder
   103  }
   104  
   105  // MockValueWatchMockRecorder is the mock recorder for MockValueWatch.
   106  type MockValueWatchMockRecorder struct {
   107  	mock *MockValueWatch
   108  }
   109  
   110  // NewMockValueWatch creates a new mock instance.
   111  func NewMockValueWatch(ctrl *gomock.Controller) *MockValueWatch {
   112  	mock := &MockValueWatch{ctrl: ctrl}
   113  	mock.recorder = &MockValueWatchMockRecorder{mock}
   114  	return mock
   115  }
   116  
   117  // EXPECT returns an object that allows the caller to indicate expected use.
   118  func (m *MockValueWatch) EXPECT() *MockValueWatchMockRecorder {
   119  	return m.recorder
   120  }
   121  
   122  // C mocks base method.
   123  func (m *MockValueWatch) C() <-chan struct{} {
   124  	m.ctrl.T.Helper()
   125  	ret := m.ctrl.Call(m, "C")
   126  	ret0, _ := ret[0].(<-chan struct{})
   127  	return ret0
   128  }
   129  
   130  // C indicates an expected call of C.
   131  func (mr *MockValueWatchMockRecorder) C() *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "C", reflect.TypeOf((*MockValueWatch)(nil).C))
   134  }
   135  
   136  // Close mocks base method.
   137  func (m *MockValueWatch) Close() {
   138  	m.ctrl.T.Helper()
   139  	m.ctrl.Call(m, "Close")
   140  }
   141  
   142  // Close indicates an expected call of Close.
   143  func (mr *MockValueWatchMockRecorder) Close() *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockValueWatch)(nil).Close))
   146  }
   147  
   148  // Get mocks base method.
   149  func (m *MockValueWatch) Get() Value {
   150  	m.ctrl.T.Helper()
   151  	ret := m.ctrl.Call(m, "Get")
   152  	ret0, _ := ret[0].(Value)
   153  	return ret0
   154  }
   155  
   156  // Get indicates an expected call of Get.
   157  func (mr *MockValueWatchMockRecorder) Get() *gomock.Call {
   158  	mr.mock.ctrl.T.Helper()
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockValueWatch)(nil).Get))
   160  }
   161  
   162  // MockValueWatchable is a mock of ValueWatchable interface.
   163  type MockValueWatchable struct {
   164  	ctrl     *gomock.Controller
   165  	recorder *MockValueWatchableMockRecorder
   166  }
   167  
   168  // MockValueWatchableMockRecorder is the mock recorder for MockValueWatchable.
   169  type MockValueWatchableMockRecorder struct {
   170  	mock *MockValueWatchable
   171  }
   172  
   173  // NewMockValueWatchable creates a new mock instance.
   174  func NewMockValueWatchable(ctrl *gomock.Controller) *MockValueWatchable {
   175  	mock := &MockValueWatchable{ctrl: ctrl}
   176  	mock.recorder = &MockValueWatchableMockRecorder{mock}
   177  	return mock
   178  }
   179  
   180  // EXPECT returns an object that allows the caller to indicate expected use.
   181  func (m *MockValueWatchable) EXPECT() *MockValueWatchableMockRecorder {
   182  	return m.recorder
   183  }
   184  
   185  // Close mocks base method.
   186  func (m *MockValueWatchable) Close() {
   187  	m.ctrl.T.Helper()
   188  	m.ctrl.Call(m, "Close")
   189  }
   190  
   191  // Close indicates an expected call of Close.
   192  func (mr *MockValueWatchableMockRecorder) Close() *gomock.Call {
   193  	mr.mock.ctrl.T.Helper()
   194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockValueWatchable)(nil).Close))
   195  }
   196  
   197  // Get mocks base method.
   198  func (m *MockValueWatchable) Get() Value {
   199  	m.ctrl.T.Helper()
   200  	ret := m.ctrl.Call(m, "Get")
   201  	ret0, _ := ret[0].(Value)
   202  	return ret0
   203  }
   204  
   205  // Get indicates an expected call of Get.
   206  func (mr *MockValueWatchableMockRecorder) Get() *gomock.Call {
   207  	mr.mock.ctrl.T.Helper()
   208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockValueWatchable)(nil).Get))
   209  }
   210  
   211  // IsClosed mocks base method.
   212  func (m *MockValueWatchable) IsClosed() bool {
   213  	m.ctrl.T.Helper()
   214  	ret := m.ctrl.Call(m, "IsClosed")
   215  	ret0, _ := ret[0].(bool)
   216  	return ret0
   217  }
   218  
   219  // IsClosed indicates an expected call of IsClosed.
   220  func (mr *MockValueWatchableMockRecorder) IsClosed() *gomock.Call {
   221  	mr.mock.ctrl.T.Helper()
   222  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsClosed", reflect.TypeOf((*MockValueWatchable)(nil).IsClosed))
   223  }
   224  
   225  // NumWatches mocks base method.
   226  func (m *MockValueWatchable) NumWatches() int {
   227  	m.ctrl.T.Helper()
   228  	ret := m.ctrl.Call(m, "NumWatches")
   229  	ret0, _ := ret[0].(int)
   230  	return ret0
   231  }
   232  
   233  // NumWatches indicates an expected call of NumWatches.
   234  func (mr *MockValueWatchableMockRecorder) NumWatches() *gomock.Call {
   235  	mr.mock.ctrl.T.Helper()
   236  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumWatches", reflect.TypeOf((*MockValueWatchable)(nil).NumWatches))
   237  }
   238  
   239  // Update mocks base method.
   240  func (m *MockValueWatchable) Update(arg0 Value) error {
   241  	m.ctrl.T.Helper()
   242  	ret := m.ctrl.Call(m, "Update", arg0)
   243  	ret0, _ := ret[0].(error)
   244  	return ret0
   245  }
   246  
   247  // Update indicates an expected call of Update.
   248  func (mr *MockValueWatchableMockRecorder) Update(arg0 interface{}) *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockValueWatchable)(nil).Update), arg0)
   251  }
   252  
   253  // Watch mocks base method.
   254  func (m *MockValueWatchable) Watch() (Value, ValueWatch, error) {
   255  	m.ctrl.T.Helper()
   256  	ret := m.ctrl.Call(m, "Watch")
   257  	ret0, _ := ret[0].(Value)
   258  	ret1, _ := ret[1].(ValueWatch)
   259  	ret2, _ := ret[2].(error)
   260  	return ret0, ret1, ret2
   261  }
   262  
   263  // Watch indicates an expected call of Watch.
   264  func (mr *MockValueWatchableMockRecorder) Watch() *gomock.Call {
   265  	mr.mock.ctrl.T.Helper()
   266  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockValueWatchable)(nil).Watch))
   267  }
   268  
   269  // MockOverrideOptions is a mock of OverrideOptions interface.
   270  type MockOverrideOptions struct {
   271  	ctrl     *gomock.Controller
   272  	recorder *MockOverrideOptionsMockRecorder
   273  }
   274  
   275  // MockOverrideOptionsMockRecorder is the mock recorder for MockOverrideOptions.
   276  type MockOverrideOptionsMockRecorder struct {
   277  	mock *MockOverrideOptions
   278  }
   279  
   280  // NewMockOverrideOptions creates a new mock instance.
   281  func NewMockOverrideOptions(ctrl *gomock.Controller) *MockOverrideOptions {
   282  	mock := &MockOverrideOptions{ctrl: ctrl}
   283  	mock.recorder = &MockOverrideOptionsMockRecorder{mock}
   284  	return mock
   285  }
   286  
   287  // EXPECT returns an object that allows the caller to indicate expected use.
   288  func (m *MockOverrideOptions) EXPECT() *MockOverrideOptionsMockRecorder {
   289  	return m.recorder
   290  }
   291  
   292  // Environment mocks base method.
   293  func (m *MockOverrideOptions) Environment() string {
   294  	m.ctrl.T.Helper()
   295  	ret := m.ctrl.Call(m, "Environment")
   296  	ret0, _ := ret[0].(string)
   297  	return ret0
   298  }
   299  
   300  // Environment indicates an expected call of Environment.
   301  func (mr *MockOverrideOptionsMockRecorder) Environment() *gomock.Call {
   302  	mr.mock.ctrl.T.Helper()
   303  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Environment", reflect.TypeOf((*MockOverrideOptions)(nil).Environment))
   304  }
   305  
   306  // Namespace mocks base method.
   307  func (m *MockOverrideOptions) Namespace() string {
   308  	m.ctrl.T.Helper()
   309  	ret := m.ctrl.Call(m, "Namespace")
   310  	ret0, _ := ret[0].(string)
   311  	return ret0
   312  }
   313  
   314  // Namespace indicates an expected call of Namespace.
   315  func (mr *MockOverrideOptionsMockRecorder) Namespace() *gomock.Call {
   316  	mr.mock.ctrl.T.Helper()
   317  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockOverrideOptions)(nil).Namespace))
   318  }
   319  
   320  // SetEnvironment mocks base method.
   321  func (m *MockOverrideOptions) SetEnvironment(env string) OverrideOptions {
   322  	m.ctrl.T.Helper()
   323  	ret := m.ctrl.Call(m, "SetEnvironment", env)
   324  	ret0, _ := ret[0].(OverrideOptions)
   325  	return ret0
   326  }
   327  
   328  // SetEnvironment indicates an expected call of SetEnvironment.
   329  func (mr *MockOverrideOptionsMockRecorder) SetEnvironment(env interface{}) *gomock.Call {
   330  	mr.mock.ctrl.T.Helper()
   331  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEnvironment", reflect.TypeOf((*MockOverrideOptions)(nil).SetEnvironment), env)
   332  }
   333  
   334  // SetNamespace mocks base method.
   335  func (m *MockOverrideOptions) SetNamespace(namespace string) OverrideOptions {
   336  	m.ctrl.T.Helper()
   337  	ret := m.ctrl.Call(m, "SetNamespace", namespace)
   338  	ret0, _ := ret[0].(OverrideOptions)
   339  	return ret0
   340  }
   341  
   342  // SetNamespace indicates an expected call of SetNamespace.
   343  func (mr *MockOverrideOptionsMockRecorder) SetNamespace(namespace interface{}) *gomock.Call {
   344  	mr.mock.ctrl.T.Helper()
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespace", reflect.TypeOf((*MockOverrideOptions)(nil).SetNamespace), namespace)
   346  }
   347  
   348  // SetZone mocks base method.
   349  func (m *MockOverrideOptions) SetZone(value string) OverrideOptions {
   350  	m.ctrl.T.Helper()
   351  	ret := m.ctrl.Call(m, "SetZone", value)
   352  	ret0, _ := ret[0].(OverrideOptions)
   353  	return ret0
   354  }
   355  
   356  // SetZone indicates an expected call of SetZone.
   357  func (mr *MockOverrideOptionsMockRecorder) SetZone(value interface{}) *gomock.Call {
   358  	mr.mock.ctrl.T.Helper()
   359  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetZone", reflect.TypeOf((*MockOverrideOptions)(nil).SetZone), value)
   360  }
   361  
   362  // Validate mocks base method.
   363  func (m *MockOverrideOptions) Validate() error {
   364  	m.ctrl.T.Helper()
   365  	ret := m.ctrl.Call(m, "Validate")
   366  	ret0, _ := ret[0].(error)
   367  	return ret0
   368  }
   369  
   370  // Validate indicates an expected call of Validate.
   371  func (mr *MockOverrideOptionsMockRecorder) Validate() *gomock.Call {
   372  	mr.mock.ctrl.T.Helper()
   373  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOverrideOptions)(nil).Validate))
   374  }
   375  
   376  // Zone mocks base method.
   377  func (m *MockOverrideOptions) Zone() string {
   378  	m.ctrl.T.Helper()
   379  	ret := m.ctrl.Call(m, "Zone")
   380  	ret0, _ := ret[0].(string)
   381  	return ret0
   382  }
   383  
   384  // Zone indicates an expected call of Zone.
   385  func (mr *MockOverrideOptionsMockRecorder) Zone() *gomock.Call {
   386  	mr.mock.ctrl.T.Helper()
   387  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Zone", reflect.TypeOf((*MockOverrideOptions)(nil).Zone))
   388  }
   389  
   390  // MockStore is a mock of Store interface.
   391  type MockStore struct {
   392  	ctrl     *gomock.Controller
   393  	recorder *MockStoreMockRecorder
   394  }
   395  
   396  // MockStoreMockRecorder is the mock recorder for MockStore.
   397  type MockStoreMockRecorder struct {
   398  	mock *MockStore
   399  }
   400  
   401  // NewMockStore creates a new mock instance.
   402  func NewMockStore(ctrl *gomock.Controller) *MockStore {
   403  	mock := &MockStore{ctrl: ctrl}
   404  	mock.recorder = &MockStoreMockRecorder{mock}
   405  	return mock
   406  }
   407  
   408  // EXPECT returns an object that allows the caller to indicate expected use.
   409  func (m *MockStore) EXPECT() *MockStoreMockRecorder {
   410  	return m.recorder
   411  }
   412  
   413  // CheckAndSet mocks base method.
   414  func (m *MockStore) CheckAndSet(key string, version int, v proto.Message) (int, error) {
   415  	m.ctrl.T.Helper()
   416  	ret := m.ctrl.Call(m, "CheckAndSet", key, version, v)
   417  	ret0, _ := ret[0].(int)
   418  	ret1, _ := ret[1].(error)
   419  	return ret0, ret1
   420  }
   421  
   422  // CheckAndSet indicates an expected call of CheckAndSet.
   423  func (mr *MockStoreMockRecorder) CheckAndSet(key, version, v interface{}) *gomock.Call {
   424  	mr.mock.ctrl.T.Helper()
   425  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckAndSet", reflect.TypeOf((*MockStore)(nil).CheckAndSet), key, version, v)
   426  }
   427  
   428  // Delete mocks base method.
   429  func (m *MockStore) Delete(key string) (Value, error) {
   430  	m.ctrl.T.Helper()
   431  	ret := m.ctrl.Call(m, "Delete", key)
   432  	ret0, _ := ret[0].(Value)
   433  	ret1, _ := ret[1].(error)
   434  	return ret0, ret1
   435  }
   436  
   437  // Delete indicates an expected call of Delete.
   438  func (mr *MockStoreMockRecorder) Delete(key interface{}) *gomock.Call {
   439  	mr.mock.ctrl.T.Helper()
   440  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStore)(nil).Delete), key)
   441  }
   442  
   443  // Get mocks base method.
   444  func (m *MockStore) Get(key string) (Value, error) {
   445  	m.ctrl.T.Helper()
   446  	ret := m.ctrl.Call(m, "Get", key)
   447  	ret0, _ := ret[0].(Value)
   448  	ret1, _ := ret[1].(error)
   449  	return ret0, ret1
   450  }
   451  
   452  // Get indicates an expected call of Get.
   453  func (mr *MockStoreMockRecorder) Get(key interface{}) *gomock.Call {
   454  	mr.mock.ctrl.T.Helper()
   455  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStore)(nil).Get), key)
   456  }
   457  
   458  // History mocks base method.
   459  func (m *MockStore) History(key string, from, to int) ([]Value, error) {
   460  	m.ctrl.T.Helper()
   461  	ret := m.ctrl.Call(m, "History", key, from, to)
   462  	ret0, _ := ret[0].([]Value)
   463  	ret1, _ := ret[1].(error)
   464  	return ret0, ret1
   465  }
   466  
   467  // History indicates an expected call of History.
   468  func (mr *MockStoreMockRecorder) History(key, from, to interface{}) *gomock.Call {
   469  	mr.mock.ctrl.T.Helper()
   470  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "History", reflect.TypeOf((*MockStore)(nil).History), key, from, to)
   471  }
   472  
   473  // Set mocks base method.
   474  func (m *MockStore) Set(key string, v proto.Message) (int, error) {
   475  	m.ctrl.T.Helper()
   476  	ret := m.ctrl.Call(m, "Set", key, v)
   477  	ret0, _ := ret[0].(int)
   478  	ret1, _ := ret[1].(error)
   479  	return ret0, ret1
   480  }
   481  
   482  // Set indicates an expected call of Set.
   483  func (mr *MockStoreMockRecorder) Set(key, v interface{}) *gomock.Call {
   484  	mr.mock.ctrl.T.Helper()
   485  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockStore)(nil).Set), key, v)
   486  }
   487  
   488  // SetIfNotExists mocks base method.
   489  func (m *MockStore) SetIfNotExists(key string, v proto.Message) (int, error) {
   490  	m.ctrl.T.Helper()
   491  	ret := m.ctrl.Call(m, "SetIfNotExists", key, v)
   492  	ret0, _ := ret[0].(int)
   493  	ret1, _ := ret[1].(error)
   494  	return ret0, ret1
   495  }
   496  
   497  // SetIfNotExists indicates an expected call of SetIfNotExists.
   498  func (mr *MockStoreMockRecorder) SetIfNotExists(key, v interface{}) *gomock.Call {
   499  	mr.mock.ctrl.T.Helper()
   500  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIfNotExists", reflect.TypeOf((*MockStore)(nil).SetIfNotExists), key, v)
   501  }
   502  
   503  // Watch mocks base method.
   504  func (m *MockStore) Watch(key string) (ValueWatch, error) {
   505  	m.ctrl.T.Helper()
   506  	ret := m.ctrl.Call(m, "Watch", key)
   507  	ret0, _ := ret[0].(ValueWatch)
   508  	ret1, _ := ret[1].(error)
   509  	return ret0, ret1
   510  }
   511  
   512  // Watch indicates an expected call of Watch.
   513  func (mr *MockStoreMockRecorder) Watch(key interface{}) *gomock.Call {
   514  	mr.mock.ctrl.T.Helper()
   515  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockStore)(nil).Watch), key)
   516  }
   517  
   518  // MockCondition is a mock of Condition interface.
   519  type MockCondition struct {
   520  	ctrl     *gomock.Controller
   521  	recorder *MockConditionMockRecorder
   522  }
   523  
   524  // MockConditionMockRecorder is the mock recorder for MockCondition.
   525  type MockConditionMockRecorder struct {
   526  	mock *MockCondition
   527  }
   528  
   529  // NewMockCondition creates a new mock instance.
   530  func NewMockCondition(ctrl *gomock.Controller) *MockCondition {
   531  	mock := &MockCondition{ctrl: ctrl}
   532  	mock.recorder = &MockConditionMockRecorder{mock}
   533  	return mock
   534  }
   535  
   536  // EXPECT returns an object that allows the caller to indicate expected use.
   537  func (m *MockCondition) EXPECT() *MockConditionMockRecorder {
   538  	return m.recorder
   539  }
   540  
   541  // CompareType mocks base method.
   542  func (m *MockCondition) CompareType() CompareType {
   543  	m.ctrl.T.Helper()
   544  	ret := m.ctrl.Call(m, "CompareType")
   545  	ret0, _ := ret[0].(CompareType)
   546  	return ret0
   547  }
   548  
   549  // CompareType indicates an expected call of CompareType.
   550  func (mr *MockConditionMockRecorder) CompareType() *gomock.Call {
   551  	mr.mock.ctrl.T.Helper()
   552  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompareType", reflect.TypeOf((*MockCondition)(nil).CompareType))
   553  }
   554  
   555  // Key mocks base method.
   556  func (m *MockCondition) Key() string {
   557  	m.ctrl.T.Helper()
   558  	ret := m.ctrl.Call(m, "Key")
   559  	ret0, _ := ret[0].(string)
   560  	return ret0
   561  }
   562  
   563  // Key indicates an expected call of Key.
   564  func (mr *MockConditionMockRecorder) Key() *gomock.Call {
   565  	mr.mock.ctrl.T.Helper()
   566  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockCondition)(nil).Key))
   567  }
   568  
   569  // SetCompareType mocks base method.
   570  func (m *MockCondition) SetCompareType(t CompareType) Condition {
   571  	m.ctrl.T.Helper()
   572  	ret := m.ctrl.Call(m, "SetCompareType", t)
   573  	ret0, _ := ret[0].(Condition)
   574  	return ret0
   575  }
   576  
   577  // SetCompareType indicates an expected call of SetCompareType.
   578  func (mr *MockConditionMockRecorder) SetCompareType(t interface{}) *gomock.Call {
   579  	mr.mock.ctrl.T.Helper()
   580  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCompareType", reflect.TypeOf((*MockCondition)(nil).SetCompareType), t)
   581  }
   582  
   583  // SetKey mocks base method.
   584  func (m *MockCondition) SetKey(key string) Condition {
   585  	m.ctrl.T.Helper()
   586  	ret := m.ctrl.Call(m, "SetKey", key)
   587  	ret0, _ := ret[0].(Condition)
   588  	return ret0
   589  }
   590  
   591  // SetKey indicates an expected call of SetKey.
   592  func (mr *MockConditionMockRecorder) SetKey(key interface{}) *gomock.Call {
   593  	mr.mock.ctrl.T.Helper()
   594  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetKey", reflect.TypeOf((*MockCondition)(nil).SetKey), key)
   595  }
   596  
   597  // SetTargetType mocks base method.
   598  func (m *MockCondition) SetTargetType(t TargetType) Condition {
   599  	m.ctrl.T.Helper()
   600  	ret := m.ctrl.Call(m, "SetTargetType", t)
   601  	ret0, _ := ret[0].(Condition)
   602  	return ret0
   603  }
   604  
   605  // SetTargetType indicates an expected call of SetTargetType.
   606  func (mr *MockConditionMockRecorder) SetTargetType(t interface{}) *gomock.Call {
   607  	mr.mock.ctrl.T.Helper()
   608  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTargetType", reflect.TypeOf((*MockCondition)(nil).SetTargetType), t)
   609  }
   610  
   611  // SetValue mocks base method.
   612  func (m *MockCondition) SetValue(value interface{}) Condition {
   613  	m.ctrl.T.Helper()
   614  	ret := m.ctrl.Call(m, "SetValue", value)
   615  	ret0, _ := ret[0].(Condition)
   616  	return ret0
   617  }
   618  
   619  // SetValue indicates an expected call of SetValue.
   620  func (mr *MockConditionMockRecorder) SetValue(value interface{}) *gomock.Call {
   621  	mr.mock.ctrl.T.Helper()
   622  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValue", reflect.TypeOf((*MockCondition)(nil).SetValue), value)
   623  }
   624  
   625  // TargetType mocks base method.
   626  func (m *MockCondition) TargetType() TargetType {
   627  	m.ctrl.T.Helper()
   628  	ret := m.ctrl.Call(m, "TargetType")
   629  	ret0, _ := ret[0].(TargetType)
   630  	return ret0
   631  }
   632  
   633  // TargetType indicates an expected call of TargetType.
   634  func (mr *MockConditionMockRecorder) TargetType() *gomock.Call {
   635  	mr.mock.ctrl.T.Helper()
   636  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TargetType", reflect.TypeOf((*MockCondition)(nil).TargetType))
   637  }
   638  
   639  // Value mocks base method.
   640  func (m *MockCondition) Value() interface{} {
   641  	m.ctrl.T.Helper()
   642  	ret := m.ctrl.Call(m, "Value")
   643  	ret0, _ := ret[0].(interface{})
   644  	return ret0
   645  }
   646  
   647  // Value indicates an expected call of Value.
   648  func (mr *MockConditionMockRecorder) Value() *gomock.Call {
   649  	mr.mock.ctrl.T.Helper()
   650  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockCondition)(nil).Value))
   651  }
   652  
   653  // MockOp is a mock of Op interface.
   654  type MockOp struct {
   655  	ctrl     *gomock.Controller
   656  	recorder *MockOpMockRecorder
   657  }
   658  
   659  // MockOpMockRecorder is the mock recorder for MockOp.
   660  type MockOpMockRecorder struct {
   661  	mock *MockOp
   662  }
   663  
   664  // NewMockOp creates a new mock instance.
   665  func NewMockOp(ctrl *gomock.Controller) *MockOp {
   666  	mock := &MockOp{ctrl: ctrl}
   667  	mock.recorder = &MockOpMockRecorder{mock}
   668  	return mock
   669  }
   670  
   671  // EXPECT returns an object that allows the caller to indicate expected use.
   672  func (m *MockOp) EXPECT() *MockOpMockRecorder {
   673  	return m.recorder
   674  }
   675  
   676  // Key mocks base method.
   677  func (m *MockOp) Key() string {
   678  	m.ctrl.T.Helper()
   679  	ret := m.ctrl.Call(m, "Key")
   680  	ret0, _ := ret[0].(string)
   681  	return ret0
   682  }
   683  
   684  // Key indicates an expected call of Key.
   685  func (mr *MockOpMockRecorder) Key() *gomock.Call {
   686  	mr.mock.ctrl.T.Helper()
   687  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockOp)(nil).Key))
   688  }
   689  
   690  // SetKey mocks base method.
   691  func (m *MockOp) SetKey(key string) Op {
   692  	m.ctrl.T.Helper()
   693  	ret := m.ctrl.Call(m, "SetKey", key)
   694  	ret0, _ := ret[0].(Op)
   695  	return ret0
   696  }
   697  
   698  // SetKey indicates an expected call of SetKey.
   699  func (mr *MockOpMockRecorder) SetKey(key interface{}) *gomock.Call {
   700  	mr.mock.ctrl.T.Helper()
   701  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetKey", reflect.TypeOf((*MockOp)(nil).SetKey), key)
   702  }
   703  
   704  // SetType mocks base method.
   705  func (m *MockOp) SetType(ot OpType) Op {
   706  	m.ctrl.T.Helper()
   707  	ret := m.ctrl.Call(m, "SetType", ot)
   708  	ret0, _ := ret[0].(Op)
   709  	return ret0
   710  }
   711  
   712  // SetType indicates an expected call of SetType.
   713  func (mr *MockOpMockRecorder) SetType(ot interface{}) *gomock.Call {
   714  	mr.mock.ctrl.T.Helper()
   715  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetType", reflect.TypeOf((*MockOp)(nil).SetType), ot)
   716  }
   717  
   718  // Type mocks base method.
   719  func (m *MockOp) Type() OpType {
   720  	m.ctrl.T.Helper()
   721  	ret := m.ctrl.Call(m, "Type")
   722  	ret0, _ := ret[0].(OpType)
   723  	return ret0
   724  }
   725  
   726  // Type indicates an expected call of Type.
   727  func (mr *MockOpMockRecorder) Type() *gomock.Call {
   728  	mr.mock.ctrl.T.Helper()
   729  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockOp)(nil).Type))
   730  }
   731  
   732  // MockOpResponse is a mock of OpResponse interface.
   733  type MockOpResponse struct {
   734  	ctrl     *gomock.Controller
   735  	recorder *MockOpResponseMockRecorder
   736  }
   737  
   738  // MockOpResponseMockRecorder is the mock recorder for MockOpResponse.
   739  type MockOpResponseMockRecorder struct {
   740  	mock *MockOpResponse
   741  }
   742  
   743  // NewMockOpResponse creates a new mock instance.
   744  func NewMockOpResponse(ctrl *gomock.Controller) *MockOpResponse {
   745  	mock := &MockOpResponse{ctrl: ctrl}
   746  	mock.recorder = &MockOpResponseMockRecorder{mock}
   747  	return mock
   748  }
   749  
   750  // EXPECT returns an object that allows the caller to indicate expected use.
   751  func (m *MockOpResponse) EXPECT() *MockOpResponseMockRecorder {
   752  	return m.recorder
   753  }
   754  
   755  // Key mocks base method.
   756  func (m *MockOpResponse) Key() string {
   757  	m.ctrl.T.Helper()
   758  	ret := m.ctrl.Call(m, "Key")
   759  	ret0, _ := ret[0].(string)
   760  	return ret0
   761  }
   762  
   763  // Key indicates an expected call of Key.
   764  func (mr *MockOpResponseMockRecorder) Key() *gomock.Call {
   765  	mr.mock.ctrl.T.Helper()
   766  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockOpResponse)(nil).Key))
   767  }
   768  
   769  // SetKey mocks base method.
   770  func (m *MockOpResponse) SetKey(key string) Op {
   771  	m.ctrl.T.Helper()
   772  	ret := m.ctrl.Call(m, "SetKey", key)
   773  	ret0, _ := ret[0].(Op)
   774  	return ret0
   775  }
   776  
   777  // SetKey indicates an expected call of SetKey.
   778  func (mr *MockOpResponseMockRecorder) SetKey(key interface{}) *gomock.Call {
   779  	mr.mock.ctrl.T.Helper()
   780  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetKey", reflect.TypeOf((*MockOpResponse)(nil).SetKey), key)
   781  }
   782  
   783  // SetType mocks base method.
   784  func (m *MockOpResponse) SetType(ot OpType) Op {
   785  	m.ctrl.T.Helper()
   786  	ret := m.ctrl.Call(m, "SetType", ot)
   787  	ret0, _ := ret[0].(Op)
   788  	return ret0
   789  }
   790  
   791  // SetType indicates an expected call of SetType.
   792  func (mr *MockOpResponseMockRecorder) SetType(ot interface{}) *gomock.Call {
   793  	mr.mock.ctrl.T.Helper()
   794  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetType", reflect.TypeOf((*MockOpResponse)(nil).SetType), ot)
   795  }
   796  
   797  // SetValue mocks base method.
   798  func (m *MockOpResponse) SetValue(v interface{}) OpResponse {
   799  	m.ctrl.T.Helper()
   800  	ret := m.ctrl.Call(m, "SetValue", v)
   801  	ret0, _ := ret[0].(OpResponse)
   802  	return ret0
   803  }
   804  
   805  // SetValue indicates an expected call of SetValue.
   806  func (mr *MockOpResponseMockRecorder) SetValue(v interface{}) *gomock.Call {
   807  	mr.mock.ctrl.T.Helper()
   808  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetValue", reflect.TypeOf((*MockOpResponse)(nil).SetValue), v)
   809  }
   810  
   811  // Type mocks base method.
   812  func (m *MockOpResponse) Type() OpType {
   813  	m.ctrl.T.Helper()
   814  	ret := m.ctrl.Call(m, "Type")
   815  	ret0, _ := ret[0].(OpType)
   816  	return ret0
   817  }
   818  
   819  // Type indicates an expected call of Type.
   820  func (mr *MockOpResponseMockRecorder) Type() *gomock.Call {
   821  	mr.mock.ctrl.T.Helper()
   822  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockOpResponse)(nil).Type))
   823  }
   824  
   825  // Value mocks base method.
   826  func (m *MockOpResponse) Value() interface{} {
   827  	m.ctrl.T.Helper()
   828  	ret := m.ctrl.Call(m, "Value")
   829  	ret0, _ := ret[0].(interface{})
   830  	return ret0
   831  }
   832  
   833  // Value indicates an expected call of Value.
   834  func (mr *MockOpResponseMockRecorder) Value() *gomock.Call {
   835  	mr.mock.ctrl.T.Helper()
   836  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockOpResponse)(nil).Value))
   837  }
   838  
   839  // MockResponse is a mock of Response interface.
   840  type MockResponse struct {
   841  	ctrl     *gomock.Controller
   842  	recorder *MockResponseMockRecorder
   843  }
   844  
   845  // MockResponseMockRecorder is the mock recorder for MockResponse.
   846  type MockResponseMockRecorder struct {
   847  	mock *MockResponse
   848  }
   849  
   850  // NewMockResponse creates a new mock instance.
   851  func NewMockResponse(ctrl *gomock.Controller) *MockResponse {
   852  	mock := &MockResponse{ctrl: ctrl}
   853  	mock.recorder = &MockResponseMockRecorder{mock}
   854  	return mock
   855  }
   856  
   857  // EXPECT returns an object that allows the caller to indicate expected use.
   858  func (m *MockResponse) EXPECT() *MockResponseMockRecorder {
   859  	return m.recorder
   860  }
   861  
   862  // Responses mocks base method.
   863  func (m *MockResponse) Responses() []OpResponse {
   864  	m.ctrl.T.Helper()
   865  	ret := m.ctrl.Call(m, "Responses")
   866  	ret0, _ := ret[0].([]OpResponse)
   867  	return ret0
   868  }
   869  
   870  // Responses indicates an expected call of Responses.
   871  func (mr *MockResponseMockRecorder) Responses() *gomock.Call {
   872  	mr.mock.ctrl.T.Helper()
   873  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Responses", reflect.TypeOf((*MockResponse)(nil).Responses))
   874  }
   875  
   876  // SetResponses mocks base method.
   877  func (m *MockResponse) SetResponses(oprs []OpResponse) Response {
   878  	m.ctrl.T.Helper()
   879  	ret := m.ctrl.Call(m, "SetResponses", oprs)
   880  	ret0, _ := ret[0].(Response)
   881  	return ret0
   882  }
   883  
   884  // SetResponses indicates an expected call of SetResponses.
   885  func (mr *MockResponseMockRecorder) SetResponses(oprs interface{}) *gomock.Call {
   886  	mr.mock.ctrl.T.Helper()
   887  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetResponses", reflect.TypeOf((*MockResponse)(nil).SetResponses), oprs)
   888  }
   889  
   890  // MockTxnStore is a mock of TxnStore interface.
   891  type MockTxnStore struct {
   892  	ctrl     *gomock.Controller
   893  	recorder *MockTxnStoreMockRecorder
   894  }
   895  
   896  // MockTxnStoreMockRecorder is the mock recorder for MockTxnStore.
   897  type MockTxnStoreMockRecorder struct {
   898  	mock *MockTxnStore
   899  }
   900  
   901  // NewMockTxnStore creates a new mock instance.
   902  func NewMockTxnStore(ctrl *gomock.Controller) *MockTxnStore {
   903  	mock := &MockTxnStore{ctrl: ctrl}
   904  	mock.recorder = &MockTxnStoreMockRecorder{mock}
   905  	return mock
   906  }
   907  
   908  // EXPECT returns an object that allows the caller to indicate expected use.
   909  func (m *MockTxnStore) EXPECT() *MockTxnStoreMockRecorder {
   910  	return m.recorder
   911  }
   912  
   913  // CheckAndSet mocks base method.
   914  func (m *MockTxnStore) CheckAndSet(key string, version int, v proto.Message) (int, error) {
   915  	m.ctrl.T.Helper()
   916  	ret := m.ctrl.Call(m, "CheckAndSet", key, version, v)
   917  	ret0, _ := ret[0].(int)
   918  	ret1, _ := ret[1].(error)
   919  	return ret0, ret1
   920  }
   921  
   922  // CheckAndSet indicates an expected call of CheckAndSet.
   923  func (mr *MockTxnStoreMockRecorder) CheckAndSet(key, version, v interface{}) *gomock.Call {
   924  	mr.mock.ctrl.T.Helper()
   925  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckAndSet", reflect.TypeOf((*MockTxnStore)(nil).CheckAndSet), key, version, v)
   926  }
   927  
   928  // Commit mocks base method.
   929  func (m *MockTxnStore) Commit(arg0 []Condition, arg1 []Op) (Response, error) {
   930  	m.ctrl.T.Helper()
   931  	ret := m.ctrl.Call(m, "Commit", arg0, arg1)
   932  	ret0, _ := ret[0].(Response)
   933  	ret1, _ := ret[1].(error)
   934  	return ret0, ret1
   935  }
   936  
   937  // Commit indicates an expected call of Commit.
   938  func (mr *MockTxnStoreMockRecorder) Commit(arg0, arg1 interface{}) *gomock.Call {
   939  	mr.mock.ctrl.T.Helper()
   940  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTxnStore)(nil).Commit), arg0, arg1)
   941  }
   942  
   943  // Delete mocks base method.
   944  func (m *MockTxnStore) Delete(key string) (Value, error) {
   945  	m.ctrl.T.Helper()
   946  	ret := m.ctrl.Call(m, "Delete", key)
   947  	ret0, _ := ret[0].(Value)
   948  	ret1, _ := ret[1].(error)
   949  	return ret0, ret1
   950  }
   951  
   952  // Delete indicates an expected call of Delete.
   953  func (mr *MockTxnStoreMockRecorder) Delete(key interface{}) *gomock.Call {
   954  	mr.mock.ctrl.T.Helper()
   955  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockTxnStore)(nil).Delete), key)
   956  }
   957  
   958  // Get mocks base method.
   959  func (m *MockTxnStore) Get(key string) (Value, error) {
   960  	m.ctrl.T.Helper()
   961  	ret := m.ctrl.Call(m, "Get", key)
   962  	ret0, _ := ret[0].(Value)
   963  	ret1, _ := ret[1].(error)
   964  	return ret0, ret1
   965  }
   966  
   967  // Get indicates an expected call of Get.
   968  func (mr *MockTxnStoreMockRecorder) Get(key interface{}) *gomock.Call {
   969  	mr.mock.ctrl.T.Helper()
   970  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockTxnStore)(nil).Get), key)
   971  }
   972  
   973  // History mocks base method.
   974  func (m *MockTxnStore) History(key string, from, to int) ([]Value, error) {
   975  	m.ctrl.T.Helper()
   976  	ret := m.ctrl.Call(m, "History", key, from, to)
   977  	ret0, _ := ret[0].([]Value)
   978  	ret1, _ := ret[1].(error)
   979  	return ret0, ret1
   980  }
   981  
   982  // History indicates an expected call of History.
   983  func (mr *MockTxnStoreMockRecorder) History(key, from, to interface{}) *gomock.Call {
   984  	mr.mock.ctrl.T.Helper()
   985  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "History", reflect.TypeOf((*MockTxnStore)(nil).History), key, from, to)
   986  }
   987  
   988  // Set mocks base method.
   989  func (m *MockTxnStore) Set(key string, v proto.Message) (int, error) {
   990  	m.ctrl.T.Helper()
   991  	ret := m.ctrl.Call(m, "Set", key, v)
   992  	ret0, _ := ret[0].(int)
   993  	ret1, _ := ret[1].(error)
   994  	return ret0, ret1
   995  }
   996  
   997  // Set indicates an expected call of Set.
   998  func (mr *MockTxnStoreMockRecorder) Set(key, v interface{}) *gomock.Call {
   999  	mr.mock.ctrl.T.Helper()
  1000  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockTxnStore)(nil).Set), key, v)
  1001  }
  1002  
  1003  // SetIfNotExists mocks base method.
  1004  func (m *MockTxnStore) SetIfNotExists(key string, v proto.Message) (int, error) {
  1005  	m.ctrl.T.Helper()
  1006  	ret := m.ctrl.Call(m, "SetIfNotExists", key, v)
  1007  	ret0, _ := ret[0].(int)
  1008  	ret1, _ := ret[1].(error)
  1009  	return ret0, ret1
  1010  }
  1011  
  1012  // SetIfNotExists indicates an expected call of SetIfNotExists.
  1013  func (mr *MockTxnStoreMockRecorder) SetIfNotExists(key, v interface{}) *gomock.Call {
  1014  	mr.mock.ctrl.T.Helper()
  1015  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIfNotExists", reflect.TypeOf((*MockTxnStore)(nil).SetIfNotExists), key, v)
  1016  }
  1017  
  1018  // Watch mocks base method.
  1019  func (m *MockTxnStore) Watch(key string) (ValueWatch, error) {
  1020  	m.ctrl.T.Helper()
  1021  	ret := m.ctrl.Call(m, "Watch", key)
  1022  	ret0, _ := ret[0].(ValueWatch)
  1023  	ret1, _ := ret[1].(error)
  1024  	return ret0, ret1
  1025  }
  1026  
  1027  // Watch indicates an expected call of Watch.
  1028  func (mr *MockTxnStoreMockRecorder) Watch(key interface{}) *gomock.Call {
  1029  	mr.mock.ctrl.T.Helper()
  1030  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockTxnStore)(nil).Watch), key)
  1031  }