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