mocks

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 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

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 added in v0.0.12

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)

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 added in v0.0.12

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 added in v0.0.12

type IdGenerator

type IdGenerator struct {
	mock.Mock
}

IdGenerator is an autogenerated mock type for the IdGenerator type

func NewIdGenerator

func NewIdGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdGenerator

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

func (_m *IdGenerator) EXPECT() *IdGenerator_Expecter

func (*IdGenerator) ID

func (_m *IdGenerator) ID() string

ID provides a mock function with given fields:

type IdGenerator_Expecter

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

func (*IdGenerator_Expecter) ID

ID is a helper method to define mock.On call

type IdGenerator_ID_Call

type IdGenerator_ID_Call struct {
	*mock.Call
}

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

func (*IdGenerator_ID_Call) Return

func (*IdGenerator_ID_Call) Run

func (_c *IdGenerator_ID_Call) Run(run func()) *IdGenerator_ID_Call

func (*IdGenerator_ID_Call) RunAndReturn added in v0.0.12

func (_c *IdGenerator_ID_Call) RunAndReturn(run func() string) *IdGenerator_ID_Call

Jump to

Keyboard shortcuts

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