github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/pkg/sink/kafka/v2/mock/client_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/sink/kafka/v2/client.go
     3  
     4  // Package mock_v2 is a generated GoMock package.
     5  package mock_v2
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	kafka "github.com/segmentio/kafka-go"
    13  )
    14  
    15  // MockClient is a mock of Client interface.
    16  type MockClient struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockClientMockRecorder
    19  }
    20  
    21  // MockClientMockRecorder is the mock recorder for MockClient.
    22  type MockClientMockRecorder struct {
    23  	mock *MockClient
    24  }
    25  
    26  // NewMockClient creates a new mock instance.
    27  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    28  	mock := &MockClient{ctrl: ctrl}
    29  	mock.recorder = &MockClientMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // CreateTopics mocks base method.
    39  func (m *MockClient) CreateTopics(ctx context.Context, req *kafka.CreateTopicsRequest) (*kafka.CreateTopicsResponse, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "CreateTopics", ctx, req)
    42  	ret0, _ := ret[0].(*kafka.CreateTopicsResponse)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // CreateTopics indicates an expected call of CreateTopics.
    48  func (mr *MockClientMockRecorder) CreateTopics(ctx, req interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopics", reflect.TypeOf((*MockClient)(nil).CreateTopics), ctx, req)
    51  }
    52  
    53  // DescribeConfigs mocks base method.
    54  func (m *MockClient) DescribeConfigs(ctx context.Context, req *kafka.DescribeConfigsRequest) (*kafka.DescribeConfigsResponse, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "DescribeConfigs", ctx, req)
    57  	ret0, _ := ret[0].(*kafka.DescribeConfigsResponse)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // DescribeConfigs indicates an expected call of DescribeConfigs.
    63  func (mr *MockClientMockRecorder) DescribeConfigs(ctx, req interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigs", reflect.TypeOf((*MockClient)(nil).DescribeConfigs), ctx, req)
    66  }
    67  
    68  // Metadata mocks base method.
    69  func (m *MockClient) Metadata(ctx context.Context, req *kafka.MetadataRequest) (*kafka.MetadataResponse, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "Metadata", ctx, req)
    72  	ret0, _ := ret[0].(*kafka.MetadataResponse)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // Metadata indicates an expected call of Metadata.
    78  func (mr *MockClientMockRecorder) Metadata(ctx, req interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockClient)(nil).Metadata), ctx, req)
    81  }