Documentation ¶
Index ¶
- Constants
- type MockAthenaClient
- func (m *MockAthenaClient) GetQueryExecutionWithContext(ctx aws.Context, input *athena.GetQueryExecutionInput, opts ...request.Option) (*athena.GetQueryExecutionOutput, error)
- func (m *MockAthenaClient) GetQueryResults(input *athena.GetQueryResultsInput) (*athena.GetQueryResultsOutput, error)
- func (m *MockAthenaClient) GetQueryResultsWithContext(ctx context.Context, input *athena.GetQueryResultsInput, ...) (*athena.GetQueryResultsOutput, error)
- func (m *MockAthenaClient) GetTableMetadataWithContext(ctx aws.Context, input *athena.GetTableMetadataInput, opts ...request.Option) (*athena.GetTableMetadataOutput, error)
- func (m *MockAthenaClient) ListDataCatalogsWithContext(ctx aws.Context, input *athena.ListDataCatalogsInput, opts ...request.Option) (*athena.ListDataCatalogsOutput, error)
- func (m *MockAthenaClient) ListDatabasesWithContext(ctx aws.Context, input *athena.ListDatabasesInput, opts ...request.Option) (*athena.ListDatabasesOutput, error)
- func (m *MockAthenaClient) ListTableMetadataWithContext(ctx aws.Context, input *athena.ListTableMetadataInput, opts ...request.Option) (*athena.ListTableMetadataOutput, error)
- func (m *MockAthenaClient) ListWorkGroupsWithContext(ctx aws.Context, input *athena.ListWorkGroupsInput, opts ...request.Option) (*athena.ListWorkGroupsOutput, error)
- func (m *MockAthenaClient) StartQueryExecutionWithContext(ctx aws.Context, input *athena.StartQueryExecutionInput, ...) (*athena.StartQueryExecutionOutput, error)
- func (m *MockAthenaClient) StopQueryExecution(input *athena.StopQueryExecutionInput) (*athena.StopQueryExecutionOutput, error)
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 (m *MockAthenaClient) GetQueryResults(input *athena.GetQueryResultsInput) (*athena.GetQueryResultsOutput, error)
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
func (m *MockAthenaClient) StopQueryExecution(input *athena.StopQueryExecutionInput) (*athena.StopQueryExecutionOutput, error)
Click to show internal directories.
Click to hide internal directories.