github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/topic/topicreaderinternal/raw_topic_reader_stream_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/ydb-platform/ydb-go-sdk/v3/internal/topic/topicreaderinternal (interfaces: RawTopicReaderStream) 3 // 4 // Generated by this command: 5 // 6 // mockgen -destination raw_topic_reader_stream_mock_test.go -package topicreaderinternal -write_package_comment=false . RawTopicReaderStream 7 package topicreaderinternal 8 9 import ( 10 reflect "reflect" 11 12 rawtopicreader "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic/rawtopicreader" 13 gomock "go.uber.org/mock/gomock" 14 ) 15 16 // MockRawTopicReaderStream is a mock of RawTopicReaderStream interface. 17 type MockRawTopicReaderStream struct { 18 ctrl *gomock.Controller 19 recorder *MockRawTopicReaderStreamMockRecorder 20 } 21 22 // MockRawTopicReaderStreamMockRecorder is the mock recorder for MockRawTopicReaderStream. 23 type MockRawTopicReaderStreamMockRecorder struct { 24 mock *MockRawTopicReaderStream 25 } 26 27 // NewMockRawTopicReaderStream creates a new mock instance. 28 func NewMockRawTopicReaderStream(ctrl *gomock.Controller) *MockRawTopicReaderStream { 29 mock := &MockRawTopicReaderStream{ctrl: ctrl} 30 mock.recorder = &MockRawTopicReaderStreamMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockRawTopicReaderStream) EXPECT() *MockRawTopicReaderStreamMockRecorder { 36 return m.recorder 37 } 38 39 // CloseSend mocks base method. 40 func (m *MockRawTopicReaderStream) CloseSend() error { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "CloseSend") 43 ret0, _ := ret[0].(error) 44 return ret0 45 } 46 47 // CloseSend indicates an expected call of CloseSend. 48 func (mr *MockRawTopicReaderStreamMockRecorder) CloseSend() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockRawTopicReaderStream)(nil).CloseSend)) 51 } 52 53 // Recv mocks base method. 54 func (m *MockRawTopicReaderStream) Recv() (rawtopicreader.ServerMessage, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Recv") 57 ret0, _ := ret[0].(rawtopicreader.ServerMessage) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // Recv indicates an expected call of Recv. 63 func (mr *MockRawTopicReaderStreamMockRecorder) Recv() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockRawTopicReaderStream)(nil).Recv)) 66 } 67 68 // Send mocks base method. 69 func (m *MockRawTopicReaderStream) Send(arg0 rawtopicreader.ClientMessage) error { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "Send", arg0) 72 ret0, _ := ret[0].(error) 73 return ret0 74 } 75 76 // Send indicates an expected call of Send. 77 func (mr *MockRawTopicReaderStreamMockRecorder) Send(arg0 any) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockRawTopicReaderStream)(nil).Send), arg0) 80 }