mocks

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

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

Go to latest
Published: May 10, 2020 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, a *models.User) error

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

func (*Repository) Fetch

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

Fetch provides a mock function with given fields: ctx

func (*Repository) FindAll

func (_m *Repository) FindAll() ([]*models.User, error)

FindAll provides a mock function with given fields:

func (*Repository) GetByEmpNumber

func (_m *Repository) GetByEmpNumber(ctx context.Context, empNumber string) (models.User, error)

GetByEmpNumber provides a mock function with given fields: ctx, empNumber

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id int64) (*models.User, error)

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

func (*Repository) GetByUserName

func (_m *Repository) GetByUserName(ctx context.Context, userName string) (models.User, error)

GetByUserName provides a mock function with given fields: ctx, userName

func (*Repository) Store

func (_m *Repository) Store(ctx context.Context, a *models.User) (int, error)

Store provides a mock function with given fields: ctx, a

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, ar *models.User, id int) error

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

type Usecase

type Usecase struct {
	mock.Mock
}

Usecase is an autogenerated mock type for the Usecase type

func (*Usecase) Delete

func (_m *Usecase) Delete(ctx context.Context, empNumber string) error

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

func (*Usecase) Fetch

func (_m *Usecase) Fetch(ctx context.Context) ([]models.User, error)

Fetch provides a mock function with given fields: ctx

func (*Usecase) GetByEmpNumber

func (_m *Usecase) GetByEmpNumber(ctx context.Context, empNumber string) (models.User, error)

GetByEmpNumber provides a mock function with given fields: ctx, empNumber

func (*Usecase) Login

func (_m *Usecase) Login(ctx context.Context, u models.User) (models.User, error)

Login provides a mock function with given fields: ctx, u

func (*Usecase) Store

func (_m *Usecase) Store(_a0 context.Context, _a1 *models.User) error

Store provides a mock function with given fields: _a0, _a1

func (*Usecase) Update

func (_m *Usecase) Update(ctx context.Context, u *models.User) error

Update provides a mock function with given fields: ctx, u

Jump to

Keyboard shortcuts

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