repomocks

package
v0.0.0-...-0a9cbe0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserRepo

type IUserRepo struct {
	mock.Mock
}

IUserRepo is an autogenerated mock type for the IUserRepo type

func NewIUserRepo

func NewIUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *IUserRepo

NewIUserRepo creates a new instance of IUserRepo. 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 (*IUserRepo) CreateUser

func (_m *IUserRepo) CreateUser(ctx context.Context, user *entity.User) (int, error)

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

func (*IUserRepo) GetUserByEmail

func (_m *IUserRepo) GetUserByEmail(ctx context.Context, email string) (*entity.User, error)

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

func (*IUserRepo) GetUserByID

func (_m *IUserRepo) GetUserByID(ctx context.Context, id int) (*entity.User, error)

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

func (*IUserRepo) GetUsers

func (_m *IUserRepo) GetUsers(ctx context.Context) ([]*entity.User, error)

GetUsers provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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