mocks

package
v0.0.0-...-692bca9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) ChangeBannedState

func (_m *UserService) ChangeBannedState(ctx context.Context, accessorRole string, username string) error

ChangeBannedState provides a mock function with given fields: ctx, accessorRole, username

func (*UserService) ChangeFollowingState

func (_m *UserService) ChangeFollowingState(ctx context.Context, accessorUserID string, usernameToFollow string) error

ChangeFollowingState provides a mock function with given fields: ctx, accessorUserID, usernameToFollow

func (*UserService) GetAll

func (_m *UserService) GetAll(ctx context.Context, accessorUserID string, orderBy string, status string, page uint, limit uint, keyword string) (response.Pagination[response.User], error)

GetAll provides a mock function with given fields: ctx, accessorUserID, orderBy, status, page, limit, keyword

func (*UserService) GetAllThreadByUsername

func (_m *UserService) GetAllThreadByUsername(ctx context.Context, accessorUserID string, username string, page uint, limit uint) (response.Pagination[response.ManyThread], error)

GetAllThreadByUsername provides a mock function with given fields: ctx, accessorUserID, username, page, limit

func (*UserService) GetByUsername

func (_m *UserService) GetByUsername(ctx context.Context, accessorUserID string, username string) (response.User, error)

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

func (*UserService) GetOwn

func (_m *UserService) GetOwn(ctx context.Context, accessorUserID string, accessorUsername string) (response.User, error)

GetOwn provides a mock function with given fields: ctx, accessorUserID, accessorUsername

func (*UserService) Login

func (_m *UserService) Login(ctx context.Context, p payload.Login) (response.Login, error)

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

func (*UserService) Register

func (_m *UserService) Register(ctx context.Context, p payload.Register) (string, error)

Register provides a mock function with given fields: ctx, p

Jump to

Keyboard shortcuts

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