github.com/m3db/m3@v1.5.0/src/msg/producer/writer/router_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/msg/producer/writer/router.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 writer is a generated GoMock package. 25 package writer 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 ) 32 33 // MockackRouter is a mock of ackRouter interface. 34 type MockackRouter struct { 35 ctrl *gomock.Controller 36 recorder *MockackRouterMockRecorder 37 } 38 39 // MockackRouterMockRecorder is the mock recorder for MockackRouter. 40 type MockackRouterMockRecorder struct { 41 mock *MockackRouter 42 } 43 44 // NewMockackRouter creates a new mock instance. 45 func NewMockackRouter(ctrl *gomock.Controller) *MockackRouter { 46 mock := &MockackRouter{ctrl: ctrl} 47 mock.recorder = &MockackRouterMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use. 52 func (m *MockackRouter) EXPECT() *MockackRouterMockRecorder { 53 return m.recorder 54 } 55 56 // Ack mocks base method. 57 func (m *MockackRouter) Ack(ack metadata) error { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Ack", ack) 60 ret0, _ := ret[0].(error) 61 return ret0 62 } 63 64 // Ack indicates an expected call of Ack. 65 func (mr *MockackRouterMockRecorder) Ack(ack interface{}) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ack", reflect.TypeOf((*MockackRouter)(nil).Ack), ack) 68 } 69 70 // Register mocks base method. 71 func (m *MockackRouter) Register(replicatedShardID uint64, mw messageWriter) { 72 m.ctrl.T.Helper() 73 m.ctrl.Call(m, "Register", replicatedShardID, mw) 74 } 75 76 // Register indicates an expected call of Register. 77 func (mr *MockackRouterMockRecorder) Register(replicatedShardID, mw interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockackRouter)(nil).Register), replicatedShardID, mw) 80 } 81 82 // Unregister mocks base method. 83 func (m *MockackRouter) Unregister(replicatedShardID uint64) { 84 m.ctrl.T.Helper() 85 m.ctrl.Call(m, "Unregister", replicatedShardID) 86 } 87 88 // Unregister indicates an expected call of Unregister. 89 func (mr *MockackRouterMockRecorder) Unregister(replicatedShardID interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unregister", reflect.TypeOf((*MockackRouter)(nil).Unregister), replicatedShardID) 92 }