github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/pkg/sink/codec/simple/mock/marshaller.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: pkg/sink/codec/simple/marshaller.go 3 4 // Package mock_simple is a generated GoMock package. 5 package mock_simple 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 model "github.com/pingcap/tiflow/cdc/model" 12 ) 13 14 // Mockmarshaller is a mock of marshaller interface. 15 type Mockmarshaller struct { 16 ctrl *gomock.Controller 17 recorder *MockmarshallerMockRecorder 18 } 19 20 // MockmarshallerMockRecorder is the mock recorder for Mockmarshaller. 21 type MockmarshallerMockRecorder struct { 22 mock *Mockmarshaller 23 } 24 25 // NewMockmarshaller creates a new mock instance. 26 func NewMockmarshaller(ctrl *gomock.Controller) *Mockmarshaller { 27 mock := &Mockmarshaller{ctrl: ctrl} 28 mock.recorder = &MockmarshallerMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *Mockmarshaller) EXPECT() *MockmarshallerMockRecorder { 34 return m.recorder 35 } 36 37 // MarshalCheckpoint mocks base method. 38 func (m *Mockmarshaller) MarshalCheckpoint(ts uint64) ([]byte, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "MarshalCheckpoint", ts) 41 ret0, _ := ret[0].([]byte) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // MarshalCheckpoint indicates an expected call of MarshalCheckpoint. 47 func (mr *MockmarshallerMockRecorder) MarshalCheckpoint(ts interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalCheckpoint", reflect.TypeOf((*Mockmarshaller)(nil).MarshalCheckpoint), ts) 50 } 51 52 // MarshalDDLEvent mocks base method. 53 func (m *Mockmarshaller) MarshalDDLEvent(event *model.DDLEvent) ([]byte, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "MarshalDDLEvent", event) 56 ret0, _ := ret[0].([]byte) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // MarshalDDLEvent indicates an expected call of MarshalDDLEvent. 62 func (mr *MockmarshallerMockRecorder) MarshalDDLEvent(event interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalDDLEvent", reflect.TypeOf((*Mockmarshaller)(nil).MarshalDDLEvent), event) 65 } 66 67 // MarshalRowChangedEvent mocks base method. 68 func (m *Mockmarshaller) MarshalRowChangedEvent(event *model.RowChangedEvent, handleKeyOnly bool, claimCheckFileName string) ([]byte, error) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "MarshalRowChangedEvent", event, handleKeyOnly, claimCheckFileName) 71 ret0, _ := ret[0].([]byte) 72 ret1, _ := ret[1].(error) 73 return ret0, ret1 74 } 75 76 // MarshalRowChangedEvent indicates an expected call of MarshalRowChangedEvent. 77 func (mr *MockmarshallerMockRecorder) MarshalRowChangedEvent(event, handleKeyOnly, claimCheckFileName interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalRowChangedEvent", reflect.TypeOf((*Mockmarshaller)(nil).MarshalRowChangedEvent), event, handleKeyOnly, claimCheckFileName) 80 } 81 82 // Unmarshal mocks base method. 83 func (m *Mockmarshaller) Unmarshal(data []byte, v any) error { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "Unmarshal", data, v) 86 ret0, _ := ret[0].(error) 87 return ret0 88 } 89 90 // Unmarshal indicates an expected call of Unmarshal. 91 func (mr *MockmarshallerMockRecorder) Unmarshal(data, v interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unmarshal", reflect.TypeOf((*Mockmarshaller)(nil).Unmarshal), data, v) 94 }