mocks

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 4 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 added in v1.15.1

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) EXPECT added in v1.15.1

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Get

func (_m *Client) Get(ctx context.Context, tCtx webapi.GetContext) (interface{}, error)

Get provides a mock function with given fields: ctx, tCtx

func (*Client) Status

func (_m *Client) Status(ctx context.Context, tCtx webapi.StatusContext) (core.PhaseInfo, error)

Status provides a mock function with given fields: ctx, tCtx

type Client_Expecter added in v1.15.1

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

func (*Client_Expecter) Get added in v1.15.1

func (_e *Client_Expecter) Get(ctx interface{}, tCtx interface{}) *Client_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • tCtx webapi.GetContext

func (*Client_Expecter) Status added in v1.15.1

func (_e *Client_Expecter) Status(ctx interface{}, tCtx interface{}) *Client_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context
  • tCtx webapi.StatusContext

type Client_Get_Call added in v1.15.1

type Client_Get_Call struct {
	*mock.Call
}

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

func (*Client_Get_Call) Return added in v1.15.1

func (_c *Client_Get_Call) Return(latest interface{}, err error) *Client_Get_Call

func (*Client_Get_Call) Run added in v1.15.1

func (_c *Client_Get_Call) Run(run func(ctx context.Context, tCtx webapi.GetContext)) *Client_Get_Call

func (*Client_Get_Call) RunAndReturn added in v1.15.1

func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, webapi.GetContext) (interface{}, error)) *Client_Get_Call

type Client_Status_Call added in v1.15.1

type Client_Status_Call struct {
	*mock.Call
}

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

func (*Client_Status_Call) Return added in v1.15.1

func (_c *Client_Status_Call) Return(phase core.PhaseInfo, err error) *Client_Status_Call

func (*Client_Status_Call) Run added in v1.15.1

func (*Client_Status_Call) RunAndReturn added in v1.15.1

Jump to

Keyboard shortcuts

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