userrepomock

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 2 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 a mock of a UserRepository.

func Provide

func Provide() *UserRepository

Provide provides a UserRepository mock.

func (*UserRepository) Create

func (u *UserRepository) Create(user *domain.User) (uint, error)

Create mocks the Create function.

func (*UserRepository) Delete

func (u *UserRepository) Delete(ID uint) error

Delete mocks the Delete function.

func (*UserRepository) GetAll

func (u *UserRepository) GetAll() ([]*domain.User, error)

GetAll mocks the GetAll function.

func (*UserRepository) GetByID

func (u *UserRepository) GetByID(ID uint) (*domain.User, error)

GetByID mocks the GetByID function.

func (*UserRepository) GetByUsername

func (u *UserRepository) GetByUsername(username string) (*domain.User, error)

GetByUsername mocks the GetByUsername function.

func (*UserRepository) Update

func (u *UserRepository) Update(user *domain.User) error

Update mocks the Update function.

Jump to

Keyboard shortcuts

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