mocks

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 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 UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserRepository) Create

func (_m *UserRepository) Create(ctx context.Context, entity interface{}) (string, error)

Create provides a mock function with given fields: ctx, entity

func (*UserRepository) CreateMany added in v1.9.0

func (_m *UserRepository) CreateMany(ctx context.Context, entities []interface{}) ([]string, error)

CreateMany provides a mock function with given fields: ctx, entities

func (*UserRepository) Delete

func (_m *UserRepository) Delete(ctx context.Context, ID string) error

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

func (*UserRepository) Get

func (_m *UserRepository) Get(ctx context.Context, filter map[string]interface{}, skip *int, take *int) ([]interface{}, error)

Get provides a mock function with given fields: ctx, filter, skip, take

func (*UserRepository) GetByID

func (_m *UserRepository) GetByID(ctx context.Context, ID string) (interface{}, error)

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

func (*UserRepository) Update

func (_m *UserRepository) Update(ctx context.Context, ID string, entity interface{}) error

Update provides a mock function with given fields: ctx, ID, entity

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t mockConstructorTestingTNewUserService) *UserService

NewUserService creates a new instance of UserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserService) Create

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

func (*UserService) CreateMany added in v1.9.0

func (_m *UserService) CreateMany(ctx context.Context, users []models.CreateUserReq) (models.MultiCreationResp, error)

CreateMany provides a mock function with given fields: ctx, users

func (*UserService) Delete

func (_m *UserService) Delete(ctx context.Context, ID string) error

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

func (*UserService) GetAll

func (_m *UserService) GetAll(ctx context.Context) ([]models.UserResp, error)

GetAll provides a mock function with given fields: ctx

func (*UserService) GetByEmail

func (_m *UserService) GetByEmail(ctx context.Context, email string) (models.UserResp, error)

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

func (*UserService) GetByID

func (_m *UserService) GetByID(ctx context.Context, ID string) (models.UserResp, error)

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

func (*UserService) GetUserClaims added in v1.9.0

func (_m *UserService) GetUserClaims(ctx context.Context) map[int]string

GetUserClaims provides a mock function with given fields: ctx

func (*UserService) Login

func (_m *UserService) Login(ctx context.Context, credentials models.LoginUserReq) (models.LoginUserResp, error)

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

func (*UserService) Update

func (_m *UserService) Update(ctx context.Context, ID string, user models.UpdateUserReq) 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