github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/x/pool/pool_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/x/pool (interfaces: CheckedBytesPool,BytesPool) 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 pool is a generated GoMock package. 25 package pool 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/x/checked" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockCheckedBytesPool is a mock of CheckedBytesPool interface. 36 type MockCheckedBytesPool struct { 37 ctrl *gomock.Controller 38 recorder *MockCheckedBytesPoolMockRecorder 39 } 40 41 // MockCheckedBytesPoolMockRecorder is the mock recorder for MockCheckedBytesPool. 42 type MockCheckedBytesPoolMockRecorder struct { 43 mock *MockCheckedBytesPool 44 } 45 46 // NewMockCheckedBytesPool creates a new mock instance. 47 func NewMockCheckedBytesPool(ctrl *gomock.Controller) *MockCheckedBytesPool { 48 mock := &MockCheckedBytesPool{ctrl: ctrl} 49 mock.recorder = &MockCheckedBytesPoolMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockCheckedBytesPool) EXPECT() *MockCheckedBytesPoolMockRecorder { 55 return m.recorder 56 } 57 58 // BytesPool mocks base method. 59 func (m *MockCheckedBytesPool) BytesPool() BytesPool { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "BytesPool") 62 ret0, _ := ret[0].(BytesPool) 63 return ret0 64 } 65 66 // BytesPool indicates an expected call of BytesPool. 67 func (mr *MockCheckedBytesPoolMockRecorder) BytesPool() *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesPool", reflect.TypeOf((*MockCheckedBytesPool)(nil).BytesPool)) 70 } 71 72 // Get mocks base method. 73 func (m *MockCheckedBytesPool) Get(arg0 int) checked.Bytes { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Get", arg0) 76 ret0, _ := ret[0].(checked.Bytes) 77 return ret0 78 } 79 80 // Get indicates an expected call of Get. 81 func (mr *MockCheckedBytesPoolMockRecorder) Get(arg0 interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCheckedBytesPool)(nil).Get), arg0) 84 } 85 86 // Init mocks base method. 87 func (m *MockCheckedBytesPool) Init() { 88 m.ctrl.T.Helper() 89 m.ctrl.Call(m, "Init") 90 } 91 92 // Init indicates an expected call of Init. 93 func (mr *MockCheckedBytesPoolMockRecorder) Init() *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockCheckedBytesPool)(nil).Init)) 96 } 97 98 // MockBytesPool is a mock of BytesPool interface. 99 type MockBytesPool struct { 100 ctrl *gomock.Controller 101 recorder *MockBytesPoolMockRecorder 102 } 103 104 // MockBytesPoolMockRecorder is the mock recorder for MockBytesPool. 105 type MockBytesPoolMockRecorder struct { 106 mock *MockBytesPool 107 } 108 109 // NewMockBytesPool creates a new mock instance. 110 func NewMockBytesPool(ctrl *gomock.Controller) *MockBytesPool { 111 mock := &MockBytesPool{ctrl: ctrl} 112 mock.recorder = &MockBytesPoolMockRecorder{mock} 113 return mock 114 } 115 116 // EXPECT returns an object that allows the caller to indicate expected use. 117 func (m *MockBytesPool) EXPECT() *MockBytesPoolMockRecorder { 118 return m.recorder 119 } 120 121 // Get mocks base method. 122 func (m *MockBytesPool) Get(arg0 int) []byte { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "Get", arg0) 125 ret0, _ := ret[0].([]byte) 126 return ret0 127 } 128 129 // Get indicates an expected call of Get. 130 func (mr *MockBytesPoolMockRecorder) Get(arg0 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBytesPool)(nil).Get), arg0) 133 } 134 135 // Init mocks base method. 136 func (m *MockBytesPool) Init() { 137 m.ctrl.T.Helper() 138 m.ctrl.Call(m, "Init") 139 } 140 141 // Init indicates an expected call of Init. 142 func (mr *MockBytesPoolMockRecorder) Init() *gomock.Call { 143 mr.mock.ctrl.T.Helper() 144 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockBytesPool)(nil).Init)) 145 } 146 147 // Put mocks base method. 148 func (m *MockBytesPool) Put(arg0 []byte) { 149 m.ctrl.T.Helper() 150 m.ctrl.Call(m, "Put", arg0) 151 } 152 153 // Put indicates an expected call of Put. 154 func (mr *MockBytesPoolMockRecorder) Put(arg0 interface{}) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockBytesPool)(nil).Put), arg0) 157 }