mocks

package
v0.0.0-...-7a1da02 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDbProvider

type DynamoDbProvider struct {
	mock.Mock
}

DynamoDbProvider is an autogenerated mock type for the DynamoDbProvider type

func NewDynamoDbProvider

func NewDynamoDbProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *DynamoDbProvider

NewDynamoDbProvider creates a new instance of DynamoDbProvider. 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 (*DynamoDbProvider) CreateTable

func (_m *DynamoDbProvider) CreateTable(ctx context.Context, params *dynamodb.CreateTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.CreateTableOutput, error)

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

func (*DynamoDbProvider) DeleteItem

func (_m *DynamoDbProvider) 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 (*DynamoDbProvider) EXPECT

func (*DynamoDbProvider) ExecuteStatement

func (_m *DynamoDbProvider) ExecuteStatement(ctx context.Context, params *dynamodb.ExecuteStatementInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ExecuteStatementOutput, error)

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

func (*DynamoDbProvider) GetItem

func (_m *DynamoDbProvider) 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 (*DynamoDbProvider) PutItem

func (_m *DynamoDbProvider) 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 (*DynamoDbProvider) Query

func (_m *DynamoDbProvider) 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 (*DynamoDbProvider) UpdateItem

func (_m *DynamoDbProvider) 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 DynamoDbProvider_CreateTable_Call

type DynamoDbProvider_CreateTable_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_CreateTable_Call) Return

func (*DynamoDbProvider_CreateTable_Call) Run

func (*DynamoDbProvider_CreateTable_Call) RunAndReturn

type DynamoDbProvider_DeleteItem_Call

type DynamoDbProvider_DeleteItem_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_DeleteItem_Call) Return

func (*DynamoDbProvider_DeleteItem_Call) Run

func (*DynamoDbProvider_DeleteItem_Call) RunAndReturn

type DynamoDbProvider_ExecuteStatement_Call

type DynamoDbProvider_ExecuteStatement_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_ExecuteStatement_Call) Return

func (*DynamoDbProvider_ExecuteStatement_Call) Run

type DynamoDbProvider_Expecter

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

func (*DynamoDbProvider_Expecter) CreateTable

func (_e *DynamoDbProvider_Expecter) CreateTable(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_CreateTable_Call

CreateTable is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) DeleteItem

func (_e *DynamoDbProvider_Expecter) DeleteItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_DeleteItem_Call

DeleteItem is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) ExecuteStatement

func (_e *DynamoDbProvider_Expecter) ExecuteStatement(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_ExecuteStatement_Call

ExecuteStatement is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) GetItem

func (_e *DynamoDbProvider_Expecter) GetItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_GetItem_Call

GetItem is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) PutItem

func (_e *DynamoDbProvider_Expecter) PutItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_PutItem_Call

PutItem is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) Query

func (_e *DynamoDbProvider_Expecter) Query(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_Query_Call

Query is a helper method to define mock.On call

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

func (*DynamoDbProvider_Expecter) UpdateItem

func (_e *DynamoDbProvider_Expecter) UpdateItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamoDbProvider_UpdateItem_Call

UpdateItem is a helper method to define mock.On call

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

type DynamoDbProvider_GetItem_Call

type DynamoDbProvider_GetItem_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_GetItem_Call) Return

func (*DynamoDbProvider_GetItem_Call) Run

func (*DynamoDbProvider_GetItem_Call) RunAndReturn

type DynamoDbProvider_PutItem_Call

type DynamoDbProvider_PutItem_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_PutItem_Call) Return

func (*DynamoDbProvider_PutItem_Call) Run

func (*DynamoDbProvider_PutItem_Call) RunAndReturn

type DynamoDbProvider_Query_Call

type DynamoDbProvider_Query_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_Query_Call) Return

func (*DynamoDbProvider_Query_Call) Run

func (*DynamoDbProvider_Query_Call) RunAndReturn

type DynamoDbProvider_UpdateItem_Call

type DynamoDbProvider_UpdateItem_Call struct {
	*mock.Call
}

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

func (*DynamoDbProvider_UpdateItem_Call) Return

func (*DynamoDbProvider_UpdateItem_Call) Run

func (*DynamoDbProvider_UpdateItem_Call) RunAndReturn

type LockManagerProvider

type LockManagerProvider struct {
	mock.Mock
}

LockManagerProvider is an autogenerated mock type for the LockManagerProvider type

func NewLockManagerProvider

func NewLockManagerProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockManagerProvider

NewLockManagerProvider creates a new instance of LockManagerProvider. 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 (*LockManagerProvider) AcquireLock

AcquireLock provides a mock function with given fields: ctx, opt

func (*LockManagerProvider) CanAcquireLock

func (_m *LockManagerProvider) CanAcquireLock(ctx context.Context, key string) error

CanAcquireLock provides a mock function with given fields: ctx, key

func (*LockManagerProvider) CreateLockTable

CreateLockTable provides a mock function with given fields: ctx, opt

func (*LockManagerProvider) EXPECT

func (*LockManagerProvider) ReleaseLock

func (_m *LockManagerProvider) ReleaseLock(ctx context.Context, key string) (bool, error)

ReleaseLock provides a mock function with given fields: ctx, key

type LockManagerProvider_AcquireLock_Call

type LockManagerProvider_AcquireLock_Call struct {
	*mock.Call
}

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

func (*LockManagerProvider_AcquireLock_Call) Return

func (*LockManagerProvider_AcquireLock_Call) Run

func (*LockManagerProvider_AcquireLock_Call) RunAndReturn

type LockManagerProvider_CanAcquireLock_Call

type LockManagerProvider_CanAcquireLock_Call struct {
	*mock.Call
}

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

func (*LockManagerProvider_CanAcquireLock_Call) Return

func (*LockManagerProvider_CanAcquireLock_Call) Run

func (*LockManagerProvider_CanAcquireLock_Call) RunAndReturn

type LockManagerProvider_CreateLockTable_Call

type LockManagerProvider_CreateLockTable_Call struct {
	*mock.Call
}

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

func (*LockManagerProvider_CreateLockTable_Call) Return

func (*LockManagerProvider_CreateLockTable_Call) Run

type LockManagerProvider_Expecter

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

func (*LockManagerProvider_Expecter) AcquireLock

func (_e *LockManagerProvider_Expecter) AcquireLock(ctx interface{}, opt interface{}) *LockManagerProvider_AcquireLock_Call

AcquireLock is a helper method to define mock.On call

  • ctx context.Context
  • opt *models.AcquireLockOptions

func (*LockManagerProvider_Expecter) CanAcquireLock

func (_e *LockManagerProvider_Expecter) CanAcquireLock(ctx interface{}, key interface{}) *LockManagerProvider_CanAcquireLock_Call

CanAcquireLock is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*LockManagerProvider_Expecter) CreateLockTable

func (_e *LockManagerProvider_Expecter) CreateLockTable(ctx interface{}, opt interface{}) *LockManagerProvider_CreateLockTable_Call

CreateLockTable is a helper method to define mock.On call

  • ctx context.Context
  • opt *models.CreateDynamoDBTableOptions

func (*LockManagerProvider_Expecter) ReleaseLock

func (_e *LockManagerProvider_Expecter) ReleaseLock(ctx interface{}, key interface{}) *LockManagerProvider_ReleaseLock_Call

ReleaseLock is a helper method to define mock.On call

  • ctx context.Context
  • key string

type LockManagerProvider_ReleaseLock_Call

type LockManagerProvider_ReleaseLock_Call struct {
	*mock.Call
}

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

func (*LockManagerProvider_ReleaseLock_Call) Return

func (*LockManagerProvider_ReleaseLock_Call) Run

func (*LockManagerProvider_ReleaseLock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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