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: 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) BannedUser

func (_m *UserRepository) BannedUser(ctx context.Context, userID string) error

BannedUser provides a mock function with given fields: ctx, userID

func (*UserRepository) FindAllWithStatusAndPagination

func (_m *UserRepository) FindAllWithStatusAndPagination(ctx context.Context, accessorUserID string, orderBy entity.UserOrderBy, userStatus entity.UserStatus, pageInfo entity.PageInfo, keyword string) (entity.Pagination[entity.User], error)

FindAllWithStatusAndPagination provides a mock function with given fields: ctx, accessorUserID, orderBy, userStatus, pageInfo, keyword

func (*UserRepository) FindByUsername

func (_m *UserRepository) FindByUsername(ctx context.Context, username string) (entity.User, error)

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

func (*UserRepository) FindByUsernameWithAccessor

func (_m *UserRepository) FindByUsernameWithAccessor(ctx context.Context, accessorUserID string, username string) (entity.User, error)

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

func (*UserRepository) FollowUser

func (_m *UserRepository) FollowUser(ctx context.Context, ID string, accessorUserID string, userID string) error

FollowUser provides a mock function with given fields: ctx, ID, accessorUserID, userID

func (*UserRepository) Insert

func (_m *UserRepository) Insert(ctx context.Context, _a1 entity.User) error

Insert provides a mock function with given fields: ctx, _a1

func (*UserRepository) UnbannedUser

func (_m *UserRepository) UnbannedUser(ctx context.Context, userID string) error

UnbannedUser provides a mock function with given fields: ctx, userID

func (*UserRepository) UnfollowUser

func (_m *UserRepository) UnfollowUser(ctx context.Context, accessorUserID string, userID string) error

UnfollowUser provides a mock function with given fields: ctx, accessorUserID, userID

Jump to

Keyboard shortcuts

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