mock

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DESCRIBE_STATEMENT_FAILED = "DESCRIBE_STATEMENT_FAILED"
View Source
const DESCRIBE_STATEMENT_SUCCEEDED = "DESCRIBE_STATEMENT_FINISHED"
View Source
const EMPTY_ROWS = "EMPTY_ROWS"
View Source
const FAKE_ERROR = "FAKE_ERROR"
View Source
const FAKE_SUCCESS = "FAKE_SUCCESS"
View Source
const ROWS_WITH_NEXT = "RowsWithNext"

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAthenaClient

type MockAthenaClient struct {
	CalledTimesCounter   int
	CalledTimesCountDown int
	Catalogs             []string
	Databases            []string
	Workgroups           []string
	TableMetadataList    []string
	Columns              []string
	Cancelled            bool
	athenaiface.AthenaAPI
}

Define a mock struct to be used in your unit tests of myFunc.

func (*MockAthenaClient) GetQueryExecutionWithContext

func (m *MockAthenaClient) GetQueryExecutionWithContext(ctx aws.Context, input *athena.GetQueryExecutionInput, opts ...request.Option) (*athena.GetQueryExecutionOutput, error)

func (*MockAthenaClient) GetQueryResults

func (*MockAthenaClient) GetQueryResultsWithContext

func (m *MockAthenaClient) GetQueryResultsWithContext(ctx context.Context, input *athena.GetQueryResultsInput, opts ...request.Option) (*athena.GetQueryResultsOutput, error)

func (*MockAthenaClient) GetTableMetadataWithContext

func (m *MockAthenaClient) GetTableMetadataWithContext(ctx aws.Context, input *athena.GetTableMetadataInput, opts ...request.Option) (*athena.GetTableMetadataOutput, error)

func (*MockAthenaClient) ListDataCatalogsWithContext

func (m *MockAthenaClient) ListDataCatalogsWithContext(ctx aws.Context, input *athena.ListDataCatalogsInput, opts ...request.Option) (*athena.ListDataCatalogsOutput, error)

func (*MockAthenaClient) ListDatabasesWithContext

func (m *MockAthenaClient) ListDatabasesWithContext(ctx aws.Context, input *athena.ListDatabasesInput, opts ...request.Option) (*athena.ListDatabasesOutput, error)

func (*MockAthenaClient) ListTableMetadataWithContext

func (m *MockAthenaClient) ListTableMetadataWithContext(ctx aws.Context, input *athena.ListTableMetadataInput, opts ...request.Option) (*athena.ListTableMetadataOutput, error)

func (*MockAthenaClient) ListWorkGroupsWithContext

func (m *MockAthenaClient) ListWorkGroupsWithContext(ctx aws.Context, input *athena.ListWorkGroupsInput, opts ...request.Option) (*athena.ListWorkGroupsOutput, error)

func (*MockAthenaClient) StartQueryExecutionWithContext

func (m *MockAthenaClient) StartQueryExecutionWithContext(ctx aws.Context, input *athena.StartQueryExecutionInput, opts ...request.Option) (*athena.StartQueryExecutionOutput, error)

func (*MockAthenaClient) StopQueryExecution added in v0.1.2

Jump to

Keyboard shortcuts

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