github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/pkg/httputil/mock/jobhttpclient_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/pingcap/tiflow/engine/pkg/httputil (interfaces: JobHTTPClient)
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	openapi "github.com/pingcap/tiflow/engine/pkg/openapi"
    13  )
    14  
    15  // MockJobHTTPClient is a mock of JobHTTPClient interface.
    16  type MockJobHTTPClient struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockJobHTTPClientMockRecorder
    19  }
    20  
    21  // MockJobHTTPClientMockRecorder is the mock recorder for MockJobHTTPClient.
    22  type MockJobHTTPClientMockRecorder struct {
    23  	mock *MockJobHTTPClient
    24  }
    25  
    26  // NewMockJobHTTPClient creates a new mock instance.
    27  func NewMockJobHTTPClient(ctrl *gomock.Controller) *MockJobHTTPClient {
    28  	mock := &MockJobHTTPClient{ctrl: ctrl}
    29  	mock.recorder = &MockJobHTTPClientMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockJobHTTPClient) EXPECT() *MockJobHTTPClientMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Close mocks base method.
    39  func (m *MockJobHTTPClient) Close() {
    40  	m.ctrl.T.Helper()
    41  	m.ctrl.Call(m, "Close")
    42  }
    43  
    44  // Close indicates an expected call of Close.
    45  func (mr *MockJobHTTPClientMockRecorder) Close() *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockJobHTTPClient)(nil).Close))
    48  }
    49  
    50  // GetJobDetail mocks base method.
    51  func (m *MockJobHTTPClient) GetJobDetail(arg0 context.Context, arg1, arg2 string) ([]byte, *openapi.HTTPError) {
    52  	m.ctrl.T.Helper()
    53  	ret := m.ctrl.Call(m, "GetJobDetail", arg0, arg1, arg2)
    54  	ret0, _ := ret[0].([]byte)
    55  	ret1, _ := ret[1].(*openapi.HTTPError)
    56  	return ret0, ret1
    57  }
    58  
    59  // GetJobDetail indicates an expected call of GetJobDetail.
    60  func (mr *MockJobHTTPClientMockRecorder) GetJobDetail(arg0, arg1, arg2 interface{}) *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobDetail", reflect.TypeOf((*MockJobHTTPClient)(nil).GetJobDetail), arg0, arg1, arg2)
    63  }