github.com/m3db/m3@v1.5.0/src/cluster/client/client_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/cluster/client (interfaces: Client) 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 client is a generated GoMock package. 25 package client 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/cluster/kv" 31 "github.com/m3db/m3/src/cluster/services" 32 33 "github.com/golang/mock/gomock" 34 ) 35 36 // MockClient is a mock of Client interface. 37 type MockClient struct { 38 ctrl *gomock.Controller 39 recorder *MockClientMockRecorder 40 } 41 42 // MockClientMockRecorder is the mock recorder for MockClient. 43 type MockClientMockRecorder struct { 44 mock *MockClient 45 } 46 47 // NewMockClient creates a new mock instance. 48 func NewMockClient(ctrl *gomock.Controller) *MockClient { 49 mock := &MockClient{ctrl: ctrl} 50 mock.recorder = &MockClientMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *MockClient) EXPECT() *MockClientMockRecorder { 56 return m.recorder 57 } 58 59 // KV mocks base method. 60 func (m *MockClient) KV() (kv.Store, error) { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "KV") 63 ret0, _ := ret[0].(kv.Store) 64 ret1, _ := ret[1].(error) 65 return ret0, ret1 66 } 67 68 // KV indicates an expected call of KV. 69 func (mr *MockClientMockRecorder) KV() *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KV", reflect.TypeOf((*MockClient)(nil).KV)) 72 } 73 74 // Services mocks base method. 75 func (m *MockClient) Services(arg0 services.OverrideOptions) (services.Services, error) { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "Services", arg0) 78 ret0, _ := ret[0].(services.Services) 79 ret1, _ := ret[1].(error) 80 return ret0, ret1 81 } 82 83 // Services indicates an expected call of Services. 84 func (mr *MockClientMockRecorder) Services(arg0 interface{}) *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockClient)(nil).Services), arg0) 87 } 88 89 // Store mocks base method. 90 func (m *MockClient) Store(arg0 kv.OverrideOptions) (kv.Store, error) { 91 m.ctrl.T.Helper() 92 ret := m.ctrl.Call(m, "Store", arg0) 93 ret0, _ := ret[0].(kv.Store) 94 ret1, _ := ret[1].(error) 95 return ret0, ret1 96 } 97 98 // Store indicates an expected call of Store. 99 func (mr *MockClientMockRecorder) Store(arg0 interface{}) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockClient)(nil).Store), arg0) 102 } 103 104 // Txn mocks base method. 105 func (m *MockClient) Txn() (kv.TxnStore, error) { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "Txn") 108 ret0, _ := ret[0].(kv.TxnStore) 109 ret1, _ := ret[1].(error) 110 return ret0, ret1 111 } 112 113 // Txn indicates an expected call of Txn. 114 func (mr *MockClientMockRecorder) Txn() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Txn", reflect.TypeOf((*MockClient)(nil).Txn)) 117 } 118 119 // TxnStore mocks base method. 120 func (m *MockClient) TxnStore(arg0 kv.OverrideOptions) (kv.TxnStore, error) { 121 m.ctrl.T.Helper() 122 ret := m.ctrl.Call(m, "TxnStore", arg0) 123 ret0, _ := ret[0].(kv.TxnStore) 124 ret1, _ := ret[1].(error) 125 return ret0, ret1 126 } 127 128 // TxnStore indicates an expected call of TxnStore. 129 func (mr *MockClientMockRecorder) TxnStore(arg0 interface{}) *gomock.Call { 130 mr.mock.ctrl.T.Helper() 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TxnStore", reflect.TypeOf((*MockClient)(nil).TxnStore), arg0) 132 }