mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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, input *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)

Query provides a mock function with given fields: ctx, input, 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{}, input interface{}, optFns ...interface{}) *DynamoDBClient_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • input *dynamodb.QueryInput
  • 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, input *dynamodb.QueryInput, optFns ...func(*dynamodb.Options))) *DynamoDBClient_Query_Call

func (*DynamoDBClient_Query_Call) RunAndReturn

Jump to

Keyboard shortcuts

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