mocks

package
v1.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 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 PrestoClient

type PrestoClient struct {
	mock.Mock
}

PrestoClient is an autogenerated mock type for the PrestoClient type

func NewPrestoClient added in v1.15.1

func NewPrestoClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *PrestoClient

NewPrestoClient creates a new instance of PrestoClient. 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 (*PrestoClient) EXPECT added in v1.15.1

func (_m *PrestoClient) EXPECT() *PrestoClient_Expecter

func (*PrestoClient) ExecuteCommand

func (_m *PrestoClient) ExecuteCommand(ctx context.Context, commandStr string, executeArgs client.PrestoExecuteArgs) (client.PrestoExecuteResponse, error)

ExecuteCommand provides a mock function with given fields: ctx, commandStr, executeArgs

func (*PrestoClient) GetCommandStatus

func (_m *PrestoClient) GetCommandStatus(ctx context.Context, commandID string) (client.PrestoStatus, error)

GetCommandStatus provides a mock function with given fields: ctx, commandID

func (*PrestoClient) KillCommand

func (_m *PrestoClient) KillCommand(ctx context.Context, commandID string) error

KillCommand provides a mock function with given fields: ctx, commandID

type PrestoClient_ExecuteCommand_Call added in v1.15.1

type PrestoClient_ExecuteCommand_Call struct {
	*mock.Call
}

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

func (*PrestoClient_ExecuteCommand_Call) Return added in v1.15.1

func (*PrestoClient_ExecuteCommand_Call) Run added in v1.15.1

func (*PrestoClient_ExecuteCommand_Call) RunAndReturn added in v1.15.1

type PrestoClient_Expecter added in v1.15.1

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

func (*PrestoClient_Expecter) ExecuteCommand added in v1.15.1

func (_e *PrestoClient_Expecter) ExecuteCommand(ctx interface{}, commandStr interface{}, executeArgs interface{}) *PrestoClient_ExecuteCommand_Call

ExecuteCommand is a helper method to define mock.On call

  • ctx context.Context
  • commandStr string
  • executeArgs client.PrestoExecuteArgs

func (*PrestoClient_Expecter) GetCommandStatus added in v1.15.1

func (_e *PrestoClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}) *PrestoClient_GetCommandStatus_Call

GetCommandStatus is a helper method to define mock.On call

  • ctx context.Context
  • commandID string

func (*PrestoClient_Expecter) KillCommand added in v1.15.1

func (_e *PrestoClient_Expecter) KillCommand(ctx interface{}, commandID interface{}) *PrestoClient_KillCommand_Call

KillCommand is a helper method to define mock.On call

  • ctx context.Context
  • commandID string

type PrestoClient_GetCommandStatus_Call added in v1.15.1

type PrestoClient_GetCommandStatus_Call struct {
	*mock.Call
}

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

func (*PrestoClient_GetCommandStatus_Call) Return added in v1.15.1

func (*PrestoClient_GetCommandStatus_Call) Run added in v1.15.1

func (*PrestoClient_GetCommandStatus_Call) RunAndReturn added in v1.15.1

type PrestoClient_KillCommand_Call added in v1.15.1

type PrestoClient_KillCommand_Call struct {
	*mock.Call
}

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

func (*PrestoClient_KillCommand_Call) Return added in v1.15.1

func (*PrestoClient_KillCommand_Call) Run added in v1.15.1

func (*PrestoClient_KillCommand_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