mocks

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 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 QuboleClient

type QuboleClient struct {
	mock.Mock
}

QuboleClient is an autogenerated mock type for the QuboleClient type

func NewQuboleClient added in v1.15.1

func NewQuboleClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *QuboleClient

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

func (_m *QuboleClient) EXPECT() *QuboleClient_Expecter

func (*QuboleClient) ExecuteHiveCommand

func (_m *QuboleClient) ExecuteHiveCommand(ctx context.Context, commandStr string, timeoutVal uint32, clusterPrimaryLabel string, accountKey string, tags []string, commandMetadata client.CommandMetadata) (*client.QuboleCommandDetails, error)

ExecuteHiveCommand provides a mock function with given fields: ctx, commandStr, timeoutVal, clusterPrimaryLabel, accountKey, tags, commandMetadata

func (*QuboleClient) GetCommandStatus

func (_m *QuboleClient) GetCommandStatus(ctx context.Context, commandID string, accountKey string) (client.QuboleStatus, error)

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

func (*QuboleClient) KillCommand

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

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

type QuboleClient_ExecuteHiveCommand_Call added in v1.15.1

type QuboleClient_ExecuteHiveCommand_Call struct {
	*mock.Call
}

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

func (*QuboleClient_ExecuteHiveCommand_Call) Return added in v1.15.1

func (*QuboleClient_ExecuteHiveCommand_Call) Run added in v1.15.1

func (_c *QuboleClient_ExecuteHiveCommand_Call) Run(run func(ctx context.Context, commandStr string, timeoutVal uint32, clusterPrimaryLabel string, accountKey string, tags []string, commandMetadata client.CommandMetadata)) *QuboleClient_ExecuteHiveCommand_Call

func (*QuboleClient_ExecuteHiveCommand_Call) RunAndReturn added in v1.15.1

type QuboleClient_Expecter added in v1.15.1

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

func (*QuboleClient_Expecter) ExecuteHiveCommand added in v1.15.1

func (_e *QuboleClient_Expecter) ExecuteHiveCommand(ctx interface{}, commandStr interface{}, timeoutVal interface{}, clusterPrimaryLabel interface{}, accountKey interface{}, tags interface{}, commandMetadata interface{}) *QuboleClient_ExecuteHiveCommand_Call

ExecuteHiveCommand is a helper method to define mock.On call

  • ctx context.Context
  • commandStr string
  • timeoutVal uint32
  • clusterPrimaryLabel string
  • accountKey string
  • tags []string
  • commandMetadata client.CommandMetadata

func (*QuboleClient_Expecter) GetCommandStatus added in v1.15.1

func (_e *QuboleClient_Expecter) GetCommandStatus(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_GetCommandStatus_Call

GetCommandStatus is a helper method to define mock.On call

  • ctx context.Context
  • commandID string
  • accountKey string

func (*QuboleClient_Expecter) KillCommand added in v1.15.1

func (_e *QuboleClient_Expecter) KillCommand(ctx interface{}, commandID interface{}, accountKey interface{}) *QuboleClient_KillCommand_Call

KillCommand is a helper method to define mock.On call

  • ctx context.Context
  • commandID string
  • accountKey string

type QuboleClient_GetCommandStatus_Call added in v1.15.1

type QuboleClient_GetCommandStatus_Call struct {
	*mock.Call
}

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

func (*QuboleClient_GetCommandStatus_Call) Return added in v1.15.1

func (*QuboleClient_GetCommandStatus_Call) Run added in v1.15.1

func (*QuboleClient_GetCommandStatus_Call) RunAndReturn added in v1.15.1

type QuboleClient_KillCommand_Call added in v1.15.1

type QuboleClient_KillCommand_Call struct {
	*mock.Call
}

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

func (*QuboleClient_KillCommand_Call) Return added in v1.15.1

func (*QuboleClient_KillCommand_Call) Run added in v1.15.1

func (_c *QuboleClient_KillCommand_Call) Run(run func(ctx context.Context, commandID string, accountKey string)) *QuboleClient_KillCommand_Call

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