github.com/matrixorigin/matrixone@v1.2.0/pkg/frontend/test/iopackage_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: iopackage.go 3 4 // Package mock_frontend is a generated GoMock package. 5 package mock_frontend 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockIOPackage is a mock of IOPackage interface. 14 type MockIOPackage struct { 15 ctrl *gomock.Controller 16 recorder *MockIOPackageMockRecorder 17 } 18 19 // MockIOPackageMockRecorder is the mock recorder for MockIOPackage. 20 type MockIOPackageMockRecorder struct { 21 mock *MockIOPackage 22 } 23 24 // NewMockIOPackage creates a new mock instance. 25 func NewMockIOPackage(ctrl *gomock.Controller) *MockIOPackage { 26 mock := &MockIOPackage{ctrl: ctrl} 27 mock.recorder = &MockIOPackageMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockIOPackage) EXPECT() *MockIOPackageMockRecorder { 33 return m.recorder 34 } 35 36 // AppendUint16 mocks base method. 37 func (m *MockIOPackage) AppendUint16(arg0 []byte, arg1 uint16) []byte { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "AppendUint16", arg0, arg1) 40 ret0, _ := ret[0].([]byte) 41 return ret0 42 } 43 44 // AppendUint16 indicates an expected call of AppendUint16. 45 func (mr *MockIOPackageMockRecorder) AppendUint16(arg0, arg1 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendUint16", reflect.TypeOf((*MockIOPackage)(nil).AppendUint16), arg0, arg1) 48 } 49 50 // AppendUint32 mocks base method. 51 func (m *MockIOPackage) AppendUint32(arg0 []byte, arg1 uint32) []byte { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "AppendUint32", arg0, arg1) 54 ret0, _ := ret[0].([]byte) 55 return ret0 56 } 57 58 // AppendUint32 indicates an expected call of AppendUint32. 59 func (mr *MockIOPackageMockRecorder) AppendUint32(arg0, arg1 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendUint32", reflect.TypeOf((*MockIOPackage)(nil).AppendUint32), arg0, arg1) 62 } 63 64 // AppendUint64 mocks base method. 65 func (m *MockIOPackage) AppendUint64(arg0 []byte, arg1 uint64) []byte { 66 m.ctrl.T.Helper() 67 ret := m.ctrl.Call(m, "AppendUint64", arg0, arg1) 68 ret0, _ := ret[0].([]byte) 69 return ret0 70 } 71 72 // AppendUint64 indicates an expected call of AppendUint64. 73 func (mr *MockIOPackageMockRecorder) AppendUint64(arg0, arg1 interface{}) *gomock.Call { 74 mr.mock.ctrl.T.Helper() 75 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendUint64", reflect.TypeOf((*MockIOPackage)(nil).AppendUint64), arg0, arg1) 76 } 77 78 // AppendUint8 mocks base method. 79 func (m *MockIOPackage) AppendUint8(arg0 []byte, arg1 uint8) []byte { 80 m.ctrl.T.Helper() 81 ret := m.ctrl.Call(m, "AppendUint8", arg0, arg1) 82 ret0, _ := ret[0].([]byte) 83 return ret0 84 } 85 86 // AppendUint8 indicates an expected call of AppendUint8. 87 func (mr *MockIOPackageMockRecorder) AppendUint8(arg0, arg1 interface{}) *gomock.Call { 88 mr.mock.ctrl.T.Helper() 89 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendUint8", reflect.TypeOf((*MockIOPackage)(nil).AppendUint8), arg0, arg1) 90 } 91 92 // IsLittleEndian mocks base method. 93 func (m *MockIOPackage) IsLittleEndian() bool { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "IsLittleEndian") 96 ret0, _ := ret[0].(bool) 97 return ret0 98 } 99 100 // IsLittleEndian indicates an expected call of IsLittleEndian. 101 func (mr *MockIOPackageMockRecorder) IsLittleEndian() *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLittleEndian", reflect.TypeOf((*MockIOPackage)(nil).IsLittleEndian)) 104 } 105 106 // ReadUint16 mocks base method. 107 func (m *MockIOPackage) ReadUint16(arg0 []byte, arg1 int) (uint16, int, bool) { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "ReadUint16", arg0, arg1) 110 ret0, _ := ret[0].(uint16) 111 ret1, _ := ret[1].(int) 112 ret2, _ := ret[2].(bool) 113 return ret0, ret1, ret2 114 } 115 116 // ReadUint16 indicates an expected call of ReadUint16. 117 func (mr *MockIOPackageMockRecorder) ReadUint16(arg0, arg1 interface{}) *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadUint16", reflect.TypeOf((*MockIOPackage)(nil).ReadUint16), arg0, arg1) 120 } 121 122 // ReadUint32 mocks base method. 123 func (m *MockIOPackage) ReadUint32(arg0 []byte, arg1 int) (uint32, int, bool) { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "ReadUint32", arg0, arg1) 126 ret0, _ := ret[0].(uint32) 127 ret1, _ := ret[1].(int) 128 ret2, _ := ret[2].(bool) 129 return ret0, ret1, ret2 130 } 131 132 // ReadUint32 indicates an expected call of ReadUint32. 133 func (mr *MockIOPackageMockRecorder) ReadUint32(arg0, arg1 interface{}) *gomock.Call { 134 mr.mock.ctrl.T.Helper() 135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadUint32", reflect.TypeOf((*MockIOPackage)(nil).ReadUint32), arg0, arg1) 136 } 137 138 // ReadUint64 mocks base method. 139 func (m *MockIOPackage) ReadUint64(arg0 []byte, arg1 int) (uint64, int, bool) { 140 m.ctrl.T.Helper() 141 ret := m.ctrl.Call(m, "ReadUint64", arg0, arg1) 142 ret0, _ := ret[0].(uint64) 143 ret1, _ := ret[1].(int) 144 ret2, _ := ret[2].(bool) 145 return ret0, ret1, ret2 146 } 147 148 // ReadUint64 indicates an expected call of ReadUint64. 149 func (mr *MockIOPackageMockRecorder) ReadUint64(arg0, arg1 interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadUint64", reflect.TypeOf((*MockIOPackage)(nil).ReadUint64), arg0, arg1) 152 } 153 154 // ReadUint8 mocks base method. 155 func (m *MockIOPackage) ReadUint8(arg0 []byte, arg1 int) (uint8, int, bool) { 156 m.ctrl.T.Helper() 157 ret := m.ctrl.Call(m, "ReadUint8", arg0, arg1) 158 ret0, _ := ret[0].(uint8) 159 ret1, _ := ret[1].(int) 160 ret2, _ := ret[2].(bool) 161 return ret0, ret1, ret2 162 } 163 164 // ReadUint8 indicates an expected call of ReadUint8. 165 func (mr *MockIOPackageMockRecorder) ReadUint8(arg0, arg1 interface{}) *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadUint8", reflect.TypeOf((*MockIOPackage)(nil).ReadUint8), arg0, arg1) 168 } 169 170 // WriteUint16 mocks base method. 171 func (m *MockIOPackage) WriteUint16(arg0 []byte, arg1 int, arg2 uint16) int { 172 m.ctrl.T.Helper() 173 ret := m.ctrl.Call(m, "WriteUint16", arg0, arg1, arg2) 174 ret0, _ := ret[0].(int) 175 return ret0 176 } 177 178 // WriteUint16 indicates an expected call of WriteUint16. 179 func (mr *MockIOPackageMockRecorder) WriteUint16(arg0, arg1, arg2 interface{}) *gomock.Call { 180 mr.mock.ctrl.T.Helper() 181 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUint16", reflect.TypeOf((*MockIOPackage)(nil).WriteUint16), arg0, arg1, arg2) 182 } 183 184 // WriteUint32 mocks base method. 185 func (m *MockIOPackage) WriteUint32(arg0 []byte, arg1 int, arg2 uint32) int { 186 m.ctrl.T.Helper() 187 ret := m.ctrl.Call(m, "WriteUint32", arg0, arg1, arg2) 188 ret0, _ := ret[0].(int) 189 return ret0 190 } 191 192 // WriteUint32 indicates an expected call of WriteUint32. 193 func (mr *MockIOPackageMockRecorder) WriteUint32(arg0, arg1, arg2 interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUint32", reflect.TypeOf((*MockIOPackage)(nil).WriteUint32), arg0, arg1, arg2) 196 } 197 198 // WriteUint64 mocks base method. 199 func (m *MockIOPackage) WriteUint64(arg0 []byte, arg1 int, arg2 uint64) int { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "WriteUint64", arg0, arg1, arg2) 202 ret0, _ := ret[0].(int) 203 return ret0 204 } 205 206 // WriteUint64 indicates an expected call of WriteUint64. 207 func (mr *MockIOPackageMockRecorder) WriteUint64(arg0, arg1, arg2 interface{}) *gomock.Call { 208 mr.mock.ctrl.T.Helper() 209 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUint64", reflect.TypeOf((*MockIOPackage)(nil).WriteUint64), arg0, arg1, arg2) 210 } 211 212 // WriteUint8 mocks base method. 213 func (m *MockIOPackage) WriteUint8(arg0 []byte, arg1 int, arg2 uint8) int { 214 m.ctrl.T.Helper() 215 ret := m.ctrl.Call(m, "WriteUint8", arg0, arg1, arg2) 216 ret0, _ := ret[0].(int) 217 return ret0 218 } 219 220 // WriteUint8 indicates an expected call of WriteUint8. 221 func (mr *MockIOPackageMockRecorder) WriteUint8(arg0, arg1, arg2 interface{}) *gomock.Call { 222 mr.mock.ctrl.T.Helper() 223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUint8", reflect.TypeOf((*MockIOPackage)(nil).WriteUint8), arg0, arg1, arg2) 224 }