github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/topic/topicwriterinternal/raw_topic_writer_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/topicwriterinternal (interfaces: RawTopicWriterStream)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -destination raw_topic_writer_stream_mock_test.go -package topicwriterinternal -write_package_comment=false github.com/ydb-platform/ydb-go-sdk/v3/internal/topic/topicwriterinternal RawTopicWriterStream
     7  package topicwriterinternal
     8  
     9  import (
    10  	reflect "reflect"
    11  
    12  	rawtopicwriter "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic/rawtopicwriter"
    13  	gomock "go.uber.org/mock/gomock"
    14  )
    15  
    16  // MockRawTopicWriterStream is a mock of RawTopicWriterStream interface.
    17  type MockRawTopicWriterStream struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockRawTopicWriterStreamMockRecorder
    20  }
    21  
    22  // MockRawTopicWriterStreamMockRecorder is the mock recorder for MockRawTopicWriterStream.
    23  type MockRawTopicWriterStreamMockRecorder struct {
    24  	mock *MockRawTopicWriterStream
    25  }
    26  
    27  // NewMockRawTopicWriterStream creates a new mock instance.
    28  func NewMockRawTopicWriterStream(ctrl *gomock.Controller) *MockRawTopicWriterStream {
    29  	mock := &MockRawTopicWriterStream{ctrl: ctrl}
    30  	mock.recorder = &MockRawTopicWriterStreamMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockRawTopicWriterStream) EXPECT() *MockRawTopicWriterStreamMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // CloseSend mocks base method.
    40  func (m *MockRawTopicWriterStream) 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 *MockRawTopicWriterStreamMockRecorder) CloseSend() *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockRawTopicWriterStream)(nil).CloseSend))
    51  }
    52  
    53  // Recv mocks base method.
    54  func (m *MockRawTopicWriterStream) Recv() (rawtopicwriter.ServerMessage, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "Recv")
    57  	ret0, _ := ret[0].(rawtopicwriter.ServerMessage)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // Recv indicates an expected call of Recv.
    63  func (mr *MockRawTopicWriterStreamMockRecorder) Recv() *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockRawTopicWriterStream)(nil).Recv))
    66  }
    67  
    68  // Send mocks base method.
    69  func (m *MockRawTopicWriterStream) Send(arg0 rawtopicwriter.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 *MockRawTopicWriterStreamMockRecorder) Send(arg0 any) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockRawTopicWriterStream)(nil).Send), arg0)
    80  }