mocks

package
v0.0.0-...-d1be498 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 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) Generate

func (_m *IDGenerator) Generate() (entity.ID, error)

Generate provides a mock function with given fields:

type PasswordManager

type PasswordManager struct {
	mock.Mock
}

PasswordManager is an autogenerated mock type for the PasswordManager type

func NewPasswordManager

func NewPasswordManager(t mockConstructorTestingTNewPasswordManager) *PasswordManager

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

func (*PasswordManager) Compare

func (_m *PasswordManager) Compare(ctx context.Context, hashedPassword entity.HashedPassword, password entity.Password) error

Compare provides a mock function with given fields: ctx, hashedPassword, password

func (*PasswordManager) Hash

Hash provides a mock function with given fields: ctx, value

type TransactionManager

type TransactionManager struct {
	mock.Mock
}

TransactionManager is an autogenerated mock type for the TransactionManager type

func NewTransactionManager

func NewTransactionManager(t mockConstructorTestingTNewTransactionManager) *TransactionManager

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

func (*TransactionManager) BeginContext

func (_m *TransactionManager) BeginContext(parent context.Context) (context.Context, error)

BeginContext provides a mock function with given fields: parent

func (*TransactionManager) End

func (_m *TransactionManager) End(ctx context.Context) error

End provides a mock function with given fields: ctx

func (*TransactionManager) Rollback

func (_m *TransactionManager) Rollback(ctx context.Context) error

Rollback provides a mock function with given fields: ctx

type UserCredentialGateway

type UserCredentialGateway struct {
	mock.Mock
}

UserCredentialGateway is an autogenerated mock type for the UserCredentialGateway type

func NewUserCredentialGateway

func NewUserCredentialGateway(t mockConstructorTestingTNewUserCredentialGateway) *UserCredentialGateway

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

func (*UserCredentialGateway) Check

func (_m *UserCredentialGateway) Check(ctx context.Context, email entity.Email, password entity.Password) error

Check provides a mock function with given fields: ctx, email, password

func (*UserCredentialGateway) Create

Create provides a mock function with given fields: ctx, input

func (*UserCredentialGateway) GetByEmail

GetByEmail provides a mock function with given fields: ctx, email

func (*UserCredentialGateway) Update

Update provides a mock function with given fields: ctx, input

type UserGateway

type UserGateway struct {
	mock.Mock
}

UserGateway is an autogenerated mock type for the UserGateway type

func NewUserGateway

func NewUserGateway(t mockConstructorTestingTNewUserGateway) *UserGateway

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

func (*UserGateway) Create

func (_m *UserGateway) Create(ctx context.Context, input port.UserCreateInput) (*entity.User, error)

Create provides a mock function with given fields: ctx, input

func (*UserGateway) Get

func (_m *UserGateway) Get(ctx context.Context, id entity.ID) (*entity.User, error)

Get provides a mock function with given fields: ctx, id

func (*UserGateway) List

func (_m *UserGateway) List(ctx context.Context, input port.UserListInput) (entity.Users, error)

List provides a mock function with given fields: ctx, input

func (*UserGateway) Update

func (_m *UserGateway) Update(ctx context.Context, input port.UserUpdateInput) (*entity.User, error)

Update provides a mock function with given fields: ctx, input

Jump to

Keyboard shortcuts

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