client_mocks

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) CreateSearchJob

func (_m *Client) CreateSearchJob(ctx context.Context, req *client.CreateSearchJobReq) (*client.CreateSearchJobRes, error)

CreateSearchJob provides a mock function with given fields: ctx, req

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetSearchJobByID

func (_m *Client) GetSearchJobByID(ctx context.Context, req *client.GetSearchJobByIDReq) (*client.GetSearchJobByIDRes, error)

GetSearchJobByID provides a mock function with given fields: ctx, req

func (*Client) GetSearchJobResults

func (_m *Client) GetSearchJobResults(ctx context.Context, req *client.GetSearchJobResultsReq) (*client.GetSearchJobResultsRes, error)

GetSearchJobResults provides a mock function with given fields: ctx, req

type Client_CreateSearchJob_Call

type Client_CreateSearchJob_Call struct {
	*mock.Call
}

Client_CreateSearchJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSearchJob'

func (*Client_CreateSearchJob_Call) Return

func (*Client_CreateSearchJob_Call) Run

func (*Client_CreateSearchJob_Call) RunAndReturn

type Client_Expecter

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) CreateSearchJob

func (_e *Client_Expecter) CreateSearchJob(ctx interface{}, req interface{}) *Client_CreateSearchJob_Call

CreateSearchJob is a helper method to define mock.On call

  • ctx context.Context
  • req *client.CreateSearchJobReq

func (*Client_Expecter) GetSearchJobByID

func (_e *Client_Expecter) GetSearchJobByID(ctx interface{}, req interface{}) *Client_GetSearchJobByID_Call

GetSearchJobByID is a helper method to define mock.On call

  • ctx context.Context
  • req *client.GetSearchJobByIDReq

func (*Client_Expecter) GetSearchJobResults

func (_e *Client_Expecter) GetSearchJobResults(ctx interface{}, req interface{}) *Client_GetSearchJobResults_Call

GetSearchJobResults is a helper method to define mock.On call

  • ctx context.Context
  • req *client.GetSearchJobResultsReq

type Client_GetSearchJobByID_Call

type Client_GetSearchJobByID_Call struct {
	*mock.Call
}

Client_GetSearchJobByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSearchJobByID'

func (*Client_GetSearchJobByID_Call) Return

func (*Client_GetSearchJobByID_Call) Run

type Client_GetSearchJobResults_Call

type Client_GetSearchJobResults_Call struct {
	*mock.Call
}

Client_GetSearchJobResults_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSearchJobResults'

func (*Client_GetSearchJobResults_Call) Return

func (*Client_GetSearchJobResults_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL