github.com/m3db/m3@v1.5.0/src/msg/producer/writer/consumer_service_writer_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/msg/producer/writer/consumer_service_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/m3db/m3/src/msg/producer" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockconsumerServiceWriter is a mock of consumerServiceWriter interface. 36 type MockconsumerServiceWriter struct { 37 ctrl *gomock.Controller 38 recorder *MockconsumerServiceWriterMockRecorder 39 } 40 41 // MockconsumerServiceWriterMockRecorder is the mock recorder for MockconsumerServiceWriter. 42 type MockconsumerServiceWriterMockRecorder struct { 43 mock *MockconsumerServiceWriter 44 } 45 46 // NewMockconsumerServiceWriter creates a new mock instance. 47 func NewMockconsumerServiceWriter(ctrl *gomock.Controller) *MockconsumerServiceWriter { 48 mock := &MockconsumerServiceWriter{ctrl: ctrl} 49 mock.recorder = &MockconsumerServiceWriterMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockconsumerServiceWriter) EXPECT() *MockconsumerServiceWriterMockRecorder { 55 return m.recorder 56 } 57 58 // Close mocks base method. 59 func (m *MockconsumerServiceWriter) Close() { 60 m.ctrl.T.Helper() 61 m.ctrl.Call(m, "Close") 62 } 63 64 // Close indicates an expected call of Close. 65 func (mr *MockconsumerServiceWriterMockRecorder) Close() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockconsumerServiceWriter)(nil).Close)) 68 } 69 70 // Init mocks base method. 71 func (m *MockconsumerServiceWriter) Init(arg0 initType) error { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Init", arg0) 74 ret0, _ := ret[0].(error) 75 return ret0 76 } 77 78 // Init indicates an expected call of Init. 79 func (mr *MockconsumerServiceWriterMockRecorder) Init(arg0 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockconsumerServiceWriter)(nil).Init), arg0) 82 } 83 84 // RegisterFilter mocks base method. 85 func (m *MockconsumerServiceWriter) RegisterFilter(fn producer.FilterFunc) { 86 m.ctrl.T.Helper() 87 m.ctrl.Call(m, "RegisterFilter", fn) 88 } 89 90 // RegisterFilter indicates an expected call of RegisterFilter. 91 func (mr *MockconsumerServiceWriterMockRecorder) RegisterFilter(fn interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterFilter", reflect.TypeOf((*MockconsumerServiceWriter)(nil).RegisterFilter), fn) 94 } 95 96 // SetMessageTTLNanos mocks base method. 97 func (m *MockconsumerServiceWriter) SetMessageTTLNanos(value int64) { 98 m.ctrl.T.Helper() 99 m.ctrl.Call(m, "SetMessageTTLNanos", value) 100 } 101 102 // SetMessageTTLNanos indicates an expected call of SetMessageTTLNanos. 103 func (mr *MockconsumerServiceWriterMockRecorder) SetMessageTTLNanos(value interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMessageTTLNanos", reflect.TypeOf((*MockconsumerServiceWriter)(nil).SetMessageTTLNanos), value) 106 } 107 108 // UnregisterFilter mocks base method. 109 func (m *MockconsumerServiceWriter) UnregisterFilter() { 110 m.ctrl.T.Helper() 111 m.ctrl.Call(m, "UnregisterFilter") 112 } 113 114 // UnregisterFilter indicates an expected call of UnregisterFilter. 115 func (mr *MockconsumerServiceWriterMockRecorder) UnregisterFilter() *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterFilter", reflect.TypeOf((*MockconsumerServiceWriter)(nil).UnregisterFilter)) 118 } 119 120 // Write mocks base method. 121 func (m *MockconsumerServiceWriter) Write(rm *producer.RefCountedMessage) { 122 m.ctrl.T.Helper() 123 m.ctrl.Call(m, "Write", rm) 124 } 125 126 // Write indicates an expected call of Write. 127 func (mr *MockconsumerServiceWriterMockRecorder) Write(rm interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockconsumerServiceWriter)(nil).Write), rm) 130 }