mocks

package
v0.0.0-...-6f9a9ad Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) AddRoleToUser

func (_m *Repository) AddRoleToUser(ctx context.Context, userID string, role models.Role) error

AddRoleToUser provides a mock function with given fields: ctx, userID, role

func (*Repository) GetUser

func (_m *Repository) GetUser(ctx context.Context, userID string) (models.User, error)

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

func (*Repository) GetUserByEmail

func (_m *Repository) GetUserByEmail(ctx context.Context, email string) (models.User, error)

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

func (*Repository) GetUsersN

func (_m *Repository) GetUsersN(ctx context.Context) ([]models.User, error)

TODO: regenerate this file

func (*Repository) SaveUser

func (_m *Repository) SaveUser(ctx context.Context, user models.User) (models.User, error)

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

func (*Repository) UpdateUser

func (_m *Repository) UpdateUser(ctx context.Context, user models.User) (models.User, error)

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

Jump to

Keyboard shortcuts

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