mocks

package
v0.0.0-...-122b1a1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.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 UserStorage

type UserStorage struct {
	mock.Mock
}

UserStorage is an autogenerated mock type for the UserStorage type

func (*UserStorage) Create

func (_m *UserStorage) Create(ctx context.Context, username string, email string, password string) (*entities.User, error)

Create provides a mock function with given fields: ctx, username, email, password

func (*UserStorage) Find

func (_m *UserStorage) Find(ctx context.Context, email string, username string) (*entities.User, error)

Find provides a mock function with given fields: ctx, email, username

func (*UserStorage) GetByEmail

func (_m *UserStorage) GetByEmail(ctx context.Context, email string) (*entities.User, error)

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

func (*UserStorage) GetByID

func (_m *UserStorage) GetByID(ctx context.Context, id int64) (*entities.User, error)

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

func (*UserStorage) GetByUsername

func (_m *UserStorage) GetByUsername(ctx context.Context, username string) (*entities.User, error)

GetByUsername provides a mock function with given fields: ctx, username

func (*UserStorage) List

func (_m *UserStorage) List(ctx context.Context) ([]*entities.User, error)

List 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