github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/internal/topic/topicreaderinternal/topic_client_interface_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: topic_client_interface.go
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -source topic_client_interface.go -destination topic_client_interface_mock_test.go -package topicreaderinternal -write_package_comment=false --typed
     7  package topicreaderinternal
     8  
     9  import (
    10  	context "context"
    11  	reflect "reflect"
    12  
    13  	rawtopic "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic"
    14  	gomock "go.uber.org/mock/gomock"
    15  )
    16  
    17  // MockTopicClient is a mock of TopicClient interface.
    18  type MockTopicClient struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockTopicClientMockRecorder
    21  }
    22  
    23  // MockTopicClientMockRecorder is the mock recorder for MockTopicClient.
    24  type MockTopicClientMockRecorder struct {
    25  	mock *MockTopicClient
    26  }
    27  
    28  // NewMockTopicClient creates a new mock instance.
    29  func NewMockTopicClient(ctrl *gomock.Controller) *MockTopicClient {
    30  	mock := &MockTopicClient{ctrl: ctrl}
    31  	mock.recorder = &MockTopicClientMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockTopicClient) EXPECT() *MockTopicClientMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // UpdateOffsetsInTransaction mocks base method.
    41  func (m *MockTopicClient) UpdateOffsetsInTransaction(ctx context.Context, req *rawtopic.UpdateOffsetsInTransactionRequest) error {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "UpdateOffsetsInTransaction", ctx, req)
    44  	ret0, _ := ret[0].(error)
    45  	return ret0
    46  }
    47  
    48  // UpdateOffsetsInTransaction indicates an expected call of UpdateOffsetsInTransaction.
    49  func (mr *MockTopicClientMockRecorder) UpdateOffsetsInTransaction(ctx, req any) *MockTopicClientUpdateOffsetsInTransactionCall {
    50  	mr.mock.ctrl.T.Helper()
    51  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOffsetsInTransaction", reflect.TypeOf((*MockTopicClient)(nil).UpdateOffsetsInTransaction), ctx, req)
    52  	return &MockTopicClientUpdateOffsetsInTransactionCall{Call: call}
    53  }
    54  
    55  // MockTopicClientUpdateOffsetsInTransactionCall wrap *gomock.Call
    56  type MockTopicClientUpdateOffsetsInTransactionCall struct {
    57  	*gomock.Call
    58  }
    59  
    60  // Return rewrite *gomock.Call.Return
    61  func (c *MockTopicClientUpdateOffsetsInTransactionCall) Return(arg0 error) *MockTopicClientUpdateOffsetsInTransactionCall {
    62  	c.Call = c.Call.Return(arg0)
    63  	return c
    64  }
    65  
    66  // Do rewrite *gomock.Call.Do
    67  func (c *MockTopicClientUpdateOffsetsInTransactionCall) Do(f func(context.Context, *rawtopic.UpdateOffsetsInTransactionRequest) error) *MockTopicClientUpdateOffsetsInTransactionCall {
    68  	c.Call = c.Call.Do(f)
    69  	return c
    70  }
    71  
    72  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    73  func (c *MockTopicClientUpdateOffsetsInTransactionCall) DoAndReturn(f func(context.Context, *rawtopic.UpdateOffsetsInTransactionRequest) error) *MockTopicClientUpdateOffsetsInTransactionCall {
    74  	c.Call = c.Call.DoAndReturn(f)
    75  	return c
    76  }