mocks

package
v0.6.22 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

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

func (*UserRepository) CreateUser

func (_m *UserRepository) CreateUser(userModel *repository.UserModel, tx *pg.Tx) (*repository.UserModel, error)

CreateUser provides a mock function with given fields: userModel, tx

func (*UserRepository) FetchActiveOrDeletedUserByEmail

func (_m *UserRepository) FetchActiveOrDeletedUserByEmail(email string) (*repository.UserModel, error)

FetchActiveOrDeletedUserByEmail provides a mock function with given fields: email

func (*UserRepository) FetchActiveUserByEmail

func (_m *UserRepository) FetchActiveUserByEmail(email string) (bean.UserInfo, error)

FetchActiveUserByEmail provides a mock function with given fields: email

func (*UserRepository) FetchUserDetailByEmail

func (_m *UserRepository) FetchUserDetailByEmail(email string) (bean.UserInfo, error)

FetchUserDetailByEmail provides a mock function with given fields: email

func (*UserRepository) FetchUserMatchesByEmailIdExcludingApiTokenUser

func (_m *UserRepository) FetchUserMatchesByEmailIdExcludingApiTokenUser(email string) ([]repository.UserModel, error)

FetchUserMatchesByEmailIdExcludingApiTokenUser provides a mock function with given fields: email

func (*UserRepository) GetAllExcludingApiTokenUser

func (_m *UserRepository) GetAllExcludingApiTokenUser() ([]repository.UserModel, error)

GetAllExcludingApiTokenUser provides a mock function with given fields:

func (*UserRepository) GetById

func (_m *UserRepository) GetById(id int32) (*repository.UserModel, error)

GetById provides a mock function with given fields: id

func (*UserRepository) GetByIdIncludeDeleted

func (_m *UserRepository) GetByIdIncludeDeleted(id int32) (*repository.UserModel, error)

GetByIdIncludeDeleted provides a mock function with given fields: id

func (*UserRepository) GetByIds

func (_m *UserRepository) GetByIds(ids []int32) ([]repository.UserModel, error)

GetByIds provides a mock function with given fields: ids

func (*UserRepository) GetConnection

func (_m *UserRepository) GetConnection() *pg.DB

GetConnection provides a mock function with given fields:

func (*UserRepository) UpdateRoleIdForUserRolesMappings

func (_m *UserRepository) UpdateRoleIdForUserRolesMappings(roleId int, newRoleId int) (*repository.UserRoleModel, error)

UpdateRoleIdForUserRolesMappings provides a mock function with given fields: roleId, newRoleId

func (*UserRepository) UpdateUser

func (_m *UserRepository) UpdateUser(userModel *repository.UserModel, tx *pg.Tx) (*repository.UserModel, error)

UpdateUser provides a mock function with given fields: userModel, tx

Jump to

Keyboard shortcuts

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