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) EXPECT

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

type DynamodbClient_Expecter

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

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)

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

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

type Lock

type Lock struct {
	mock.Mock
}

Lock is an autogenerated mock type for the Lock type

func NewLock

func NewLock(t interface {
	mock.TestingT
	Cleanup(func())
}) *Lock

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

func (_m *Lock) EXPECT() *Lock_Expecter

func (*Lock) Refresh

func (_m *Lock) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

type Lock_Expecter

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

func (*Lock_Expecter) Refresh

func (_e *Lock_Expecter) Refresh(ctx interface{}) *Lock_Refresh_Call

Refresh is a helper method to define mock.On call

  • ctx context.Context

type Lock_Refresh_Call

type Lock_Refresh_Call struct {
	*mock.Call
}

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

func (*Lock_Refresh_Call) Return

func (_c *Lock_Refresh_Call) Return(_a0 error) *Lock_Refresh_Call

func (*Lock_Refresh_Call) Run

func (_c *Lock_Refresh_Call) Run(run func(ctx context.Context)) *Lock_Refresh_Call

func (*Lock_Refresh_Call) RunAndReturn added in v0.0.12

func (_c *Lock_Refresh_Call) RunAndReturn(run func(context.Context) error) *Lock_Refresh_Call

Jump to

Keyboard shortcuts

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