mocks

package
v0.0.0-...-7f3b7f6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 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 UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func (*UserRepository) Delete

func (_m *UserRepository) Delete(ctx context.Context, id int64) (int64, error)

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

func (*UserRepository) Get

func (_m *UserRepository) Get(ctx context.Context) ([]model.User, error)

Get provides a mock function with given fields: ctx

func (*UserRepository) GetByEmail

func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (model.User, error)

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

func (*UserRepository) Save

func (_m *UserRepository) Save(ctx context.Context, user *model.User) (int64, error)

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

func (*UserRepository) Update

func (_m *UserRepository) Update(ctx context.Context, id int64, user *model.User) (int64, error)

Update provides a mock function with given fields: ctx, id, user

Jump to

Keyboard shortcuts

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