mocks

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 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 DynamodbClient

type DynamodbClient struct {
	mock.Mock
}

DynamodbClient is an autogenerated mock type for the DynamodbClient type

func NewDynamodbClient

func NewDynamodbClient(t mockConstructorTestingTNewDynamodbClient) *DynamodbClient

NewDynamodbClient creates a new instance of DynamodbClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DynamodbClient) DeleteItem

func (_m *DynamodbClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error)

DeleteItem provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) EXPECT

func (*DynamodbClient) GetItem

func (_m *DynamodbClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)

GetItem provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) PutItem

func (_m *DynamodbClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)

PutItem provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) Query

func (_m *DynamodbClient) Query(ctx context.Context, params *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)

Query provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) Scan

func (_m *DynamodbClient) Scan(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)

Scan provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) TransactWriteItems

func (_m *DynamodbClient) TransactWriteItems(ctx context.Context, params *dynamodb.TransactWriteItemsInput, optFns ...func(*dynamodb.Options)) (*dynamodb.TransactWriteItemsOutput, error)

TransactWriteItems provides a mock function with given fields: ctx, params, optFns

func (*DynamodbClient) UpdateItem

func (_m *DynamodbClient) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error)

UpdateItem provides a mock function with given fields: ctx, params, optFns

type DynamodbClient_DeleteItem_Call

type DynamodbClient_DeleteItem_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_DeleteItem_Call) Return

func (*DynamodbClient_DeleteItem_Call) Run

func (*DynamodbClient_DeleteItem_Call) RunAndReturn

type DynamodbClient_Expecter

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

func (*DynamodbClient_Expecter) DeleteItem

func (_e *DynamodbClient_Expecter) DeleteItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_DeleteItem_Call

DeleteItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.DeleteItemInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) GetItem

func (_e *DynamodbClient_Expecter) GetItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_GetItem_Call

GetItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.GetItemInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) PutItem

func (_e *DynamodbClient_Expecter) PutItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_PutItem_Call

PutItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.PutItemInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) Query

func (_e *DynamodbClient_Expecter) Query(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.QueryInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) Scan

func (_e *DynamodbClient_Expecter) Scan(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_Scan_Call

Scan is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.ScanInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) TransactWriteItems

func (_e *DynamodbClient_Expecter) TransactWriteItems(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_TransactWriteItems_Call

TransactWriteItems is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.TransactWriteItemsInput
  • optFns ...func(*dynamodb.Options)

func (*DynamodbClient_Expecter) UpdateItem

func (_e *DynamodbClient_Expecter) UpdateItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_UpdateItem_Call

UpdateItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.UpdateItemInput
  • optFns ...func(*dynamodb.Options)

type DynamodbClient_GetItem_Call

type DynamodbClient_GetItem_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_GetItem_Call) Return

func (*DynamodbClient_GetItem_Call) Run

func (*DynamodbClient_GetItem_Call) RunAndReturn

type DynamodbClient_PutItem_Call

type DynamodbClient_PutItem_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_PutItem_Call) Return

func (*DynamodbClient_PutItem_Call) Run

func (*DynamodbClient_PutItem_Call) RunAndReturn

type DynamodbClient_Query_Call

type DynamodbClient_Query_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_Query_Call) Return

func (*DynamodbClient_Query_Call) Run

func (_c *DynamodbClient_Query_Call) Run(run func(ctx context.Context, params *dynamodb.QueryInput, optFns ...func(*dynamodb.Options))) *DynamodbClient_Query_Call

func (*DynamodbClient_Query_Call) RunAndReturn

type DynamodbClient_Scan_Call

type DynamodbClient_Scan_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_Scan_Call) Return

func (*DynamodbClient_Scan_Call) Run

func (_c *DynamodbClient_Scan_Call) Run(run func(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options))) *DynamodbClient_Scan_Call

func (*DynamodbClient_Scan_Call) RunAndReturn

type DynamodbClient_TransactWriteItems_Call

type DynamodbClient_TransactWriteItems_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_TransactWriteItems_Call) Return

func (*DynamodbClient_TransactWriteItems_Call) Run

type DynamodbClient_UpdateItem_Call

type DynamodbClient_UpdateItem_Call struct {
	*mock.Call
}

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

func (*DynamodbClient_UpdateItem_Call) Return

func (*DynamodbClient_UpdateItem_Call) Run

func (*DynamodbClient_UpdateItem_Call) RunAndReturn

Jump to

Keyboard shortcuts

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