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