mocks

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxComputeClient

type MaxComputeClient struct {
	mock.Mock
}

MaxComputeClient is an autogenerated mock type for the Client type

func NewMaxComputeClient

func NewMaxComputeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MaxComputeClient

NewMaxComputeClient creates a new instance of MaxComputeClient. 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 (*MaxComputeClient) EXPECT

func (*MaxComputeClient) GetTablePreview added in v0.11.1

func (_m *MaxComputeClient) GetTablePreview(ctx context.Context, partitionValue string, table *odps.Table, maxRows int) ([]string, *structpb.ListValue, error)

GetTablePreview provides a mock function with given fields: ctx, partitionValue, table, maxRows

func (*MaxComputeClient) GetTableSchema

func (_m *MaxComputeClient) GetTableSchema(ctx context.Context, table *odps.Table) (string, *tableschema.TableSchema, error)

GetTableSchema provides a mock function with given fields: ctx, table

func (*MaxComputeClient) ListSchema

func (_m *MaxComputeClient) ListSchema(ctx context.Context) ([]*odps.Schema, error)

ListSchema provides a mock function with given fields: ctx

func (*MaxComputeClient) ListTable

func (_m *MaxComputeClient) ListTable(ctx context.Context, schemaName string) ([]*odps.Table, error)

ListTable provides a mock function with given fields: ctx, schemaName

type MaxComputeClient_Expecter

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

func (*MaxComputeClient_Expecter) GetTablePreview added in v0.11.1

func (_e *MaxComputeClient_Expecter) GetTablePreview(ctx interface{}, partitionValue interface{}, table interface{}, maxRows interface{}) *MaxComputeClient_GetTablePreview_Call

GetTablePreview is a helper method to define mock.On call

  • ctx context.Context
  • partitionValue string
  • table *odps.Table
  • maxRows int

func (*MaxComputeClient_Expecter) GetTableSchema

func (_e *MaxComputeClient_Expecter) GetTableSchema(ctx interface{}, table interface{}) *MaxComputeClient_GetTableSchema_Call

GetTableSchema is a helper method to define mock.On call

  • ctx context.Context
  • table *odps.Table

func (*MaxComputeClient_Expecter) ListSchema

func (_e *MaxComputeClient_Expecter) ListSchema(ctx interface{}) *MaxComputeClient_ListSchema_Call

ListSchema is a helper method to define mock.On call

  • ctx context.Context

func (*MaxComputeClient_Expecter) ListTable

func (_e *MaxComputeClient_Expecter) ListTable(ctx interface{}, schemaName interface{}) *MaxComputeClient_ListTable_Call

ListTable is a helper method to define mock.On call

  • ctx context.Context
  • schemaName string

type MaxComputeClient_GetTablePreview_Call added in v0.11.1

type MaxComputeClient_GetTablePreview_Call struct {
	*mock.Call
}

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

func (*MaxComputeClient_GetTablePreview_Call) Return added in v0.11.1

func (*MaxComputeClient_GetTablePreview_Call) Run added in v0.11.1

func (_c *MaxComputeClient_GetTablePreview_Call) Run(run func(ctx context.Context, partitionValue string, table *odps.Table, maxRows int)) *MaxComputeClient_GetTablePreview_Call

func (*MaxComputeClient_GetTablePreview_Call) RunAndReturn added in v0.11.1

type MaxComputeClient_GetTableSchema_Call

type MaxComputeClient_GetTableSchema_Call struct {
	*mock.Call
}

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

func (*MaxComputeClient_GetTableSchema_Call) Return

func (*MaxComputeClient_GetTableSchema_Call) Run

func (*MaxComputeClient_GetTableSchema_Call) RunAndReturn

type MaxComputeClient_ListSchema_Call

type MaxComputeClient_ListSchema_Call struct {
	*mock.Call
}

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

func (*MaxComputeClient_ListSchema_Call) Return

func (*MaxComputeClient_ListSchema_Call) Run

func (*MaxComputeClient_ListSchema_Call) RunAndReturn

type MaxComputeClient_ListTable_Call

type MaxComputeClient_ListTable_Call struct {
	*mock.Call
}

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

func (*MaxComputeClient_ListTable_Call) Return

func (*MaxComputeClient_ListTable_Call) Run

func (*MaxComputeClient_ListTable_Call) RunAndReturn

Jump to

Keyboard shortcuts

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