mocks

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 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 IOnlineStatusDB

type IOnlineStatusDB struct {
	mock.Mock
}

IOnlineStatusDB is an autogenerated mock type for the IOnlineStatusDB type

func NewIOnlineStatusDB

func NewIOnlineStatusDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *IOnlineStatusDB

NewIOnlineStatusDB creates a new instance of IOnlineStatusDB. 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 (*IOnlineStatusDB) GetOnlineStatus

func (_m *IOnlineStatusDB) GetOnlineStatus(id string) (*database.OnlineStatus, error)

GetOnlineStatus provides a mock function with given fields: id

func (*IOnlineStatusDB) SetOnlineStatus

func (_m *IOnlineStatusDB) SetOnlineStatus(id string, status *database.OnlineStatus) error

SetOnlineStatus provides a mock function with given fields: id, status

type IUserDB

type IUserDB struct {
	mock.Mock
}

IUserDB is an autogenerated mock type for the IUserDB type

func NewIUserDB

func NewIUserDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *IUserDB

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

func (_m *IUserDB) CreateUser(user *models.User) error

CreateUser provides a mock function with given fields: user

func (*IUserDB) DeleteUser

func (_m *IUserDB) DeleteUser(user *models.User) error

DeleteUser provides a mock function with given fields: user

func (*IUserDB) FindByEmail

func (_m *IUserDB) FindByEmail(email string) (*models.User, error)

FindByEmail provides a mock function with given fields: email

func (*IUserDB) FindById

func (_m *IUserDB) FindById(id string) (*models.User, error)

FindById provides a mock function with given fields: id

func (*IUserDB) FindByUsername

func (_m *IUserDB) FindByUsername(username string) (*models.User, error)

FindByUsername provides a mock function with given fields: username

func (*IUserDB) UpdateUser

func (_m *IUserDB) UpdateUser(user *models.User) error

UpdateUser provides a mock function with given fields: user

type OnlineStatusDB

type OnlineStatusDB struct {
	mock.Mock
}

OnlineStatusDB is an autogenerated mock type for the OnlineStatusDB type

func NewOnlineStatusDB

func NewOnlineStatusDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnlineStatusDB

NewOnlineStatusDB creates a new instance of OnlineStatusDB. 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 (*OnlineStatusDB) GetOnlineStatus

func (_m *OnlineStatusDB) GetOnlineStatus(id string) (*database.OnlineStatus, error)

GetOnlineStatus provides a mock function with given fields: id

func (*OnlineStatusDB) SetOnlineStatus

func (_m *OnlineStatusDB) SetOnlineStatus(id string, status *database.OnlineStatus) error

SetOnlineStatus provides a mock function with given fields: id, status

type UserDB

type UserDB struct {
	mock.Mock
}

UserDB is an autogenerated mock type for the UserDB type

func NewUserDB

func NewUserDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserDB

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

func (_m *UserDB) CreateUser(user *models.User) error

CreateUser provides a mock function with given fields: user

func (*UserDB) DeleteUser

func (_m *UserDB) DeleteUser(user *models.User) error

DeleteUser provides a mock function with given fields: user

func (*UserDB) FindByEmail

func (_m *UserDB) FindByEmail(email string) (*models.User, error)

FindByEmail provides a mock function with given fields: email

func (*UserDB) FindById

func (_m *UserDB) FindById(id string) (*models.User, error)

FindById provides a mock function with given fields: id

func (*UserDB) FindByUsername

func (_m *UserDB) FindByUsername(username string) (*models.User, error)

FindByUsername provides a mock function with given fields: username

func (*UserDB) UpdateUser

func (_m *UserDB) UpdateUser(user *models.User) error

UpdateUser provides a mock function with given fields: user

Jump to

Keyboard shortcuts

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