mocks

package
v0.0.0-...-dc61bab Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersRepository

type UsersRepository struct {
	mock.Mock
}

UsersRepository is an autogenerated mock type for the UsersRepository type

func NewUsersRepository

func NewUsersRepository(t mockConstructorTestingTNewUsersRepository) *UsersRepository

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

func (*UsersRepository) ChangeEmail

func (_m *UsersRepository) ChangeEmail(ctx context.Context, schema repository.ChangeEmailSchema) error

ChangeEmail provides a mock function with given fields: ctx, schema

func (*UsersRepository) ChangePassword

func (_m *UsersRepository) ChangePassword(ctx context.Context, schema repository.ChangePasswordSchema) error

ChangePassword provides a mock function with given fields: ctx, schema

func (*UsersRepository) Create

func (_m *UsersRepository) Create(ctx context.Context, user entity.UserModel) error

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

func (*UsersRepository) FindByEmail

func (_m *UsersRepository) FindByEmail(ctx context.Context, email string) (entity.UserModel, error)

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

func (*UsersRepository) FindByID

func (_m *UsersRepository) FindByID(ctx context.Context, userID primitive.ObjectID) (entity.UserModel, error)

FindByID provides a mock function with given fields: ctx, userID

func (*UsersRepository) FindByLogin

func (_m *UsersRepository) FindByLogin(ctx context.Context, login string) (entity.UserModel, error)

FindByLogin provides a mock function with given fields: ctx, login

func (*UsersRepository) FindByUsername

func (_m *UsersRepository) FindByUsername(ctx context.Context, username string) (entity.UserModel, error)

FindByUsername provides a mock function with given fields: ctx, username

Jump to

Keyboard shortcuts

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