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 ThreadRepository

type ThreadRepository struct {
	mock.Mock
}

ThreadRepository is an autogenerated mock type for the ThreadRepository type

func NewThreadRepository

func NewThreadRepository(t mockConstructorTestingTNewThreadRepository) *ThreadRepository

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

func (*ThreadRepository) Delete

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

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

func (*ThreadRepository) DeleteFollowThread

func (_m *ThreadRepository) DeleteFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error

DeleteFollowThread provides a mock function with given fields: ctx, threadFollow

func (*ThreadRepository) DeleteLike

func (_m *ThreadRepository) DeleteLike(ctx context.Context, like entity.Like) error

DeleteLike provides a mock function with given fields: ctx, like

func (*ThreadRepository) DeleteModerator

func (_m *ThreadRepository) DeleteModerator(ctx context.Context, moderator entity.Moderator) error

DeleteModerator provides a mock function with given fields: ctx, moderator

func (*ThreadRepository) FindAllByCategoryIDWithPagination

func (_m *ThreadRepository) FindAllByCategoryIDWithPagination(ctx context.Context, accessorUserID string, categoryID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)

FindAllByCategoryIDWithPagination provides a mock function with given fields: ctx, accessorUserID, categoryID, pageInfo

func (*ThreadRepository) FindAllByUserIDWithPagination

func (_m *ThreadRepository) FindAllByUserIDWithPagination(ctx context.Context, accessorUserID string, UserID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)

FindAllByUserIDWithPagination provides a mock function with given fields: ctx, accessorUserID, UserID, pageInfo

func (*ThreadRepository) FindAllCommentByThreadID

func (_m *ThreadRepository) FindAllCommentByThreadID(ctx context.Context, threadID string, pageInfo entity.PageInfo) (entity.Pagination[entity.Comment], error)

FindAllCommentByThreadID provides a mock function with given fields: ctx, threadID, pageInfo

func (*ThreadRepository) FindAllModeratorByThreadID

func (_m *ThreadRepository) FindAllModeratorByThreadID(ctx context.Context, threadID string) ([]entity.Moderator, error)

FindAllModeratorByThreadID provides a mock function with given fields: ctx, threadID

func (*ThreadRepository) FindAllWithQueryAndPagination

func (_m *ThreadRepository) FindAllWithQueryAndPagination(ctx context.Context, accessorUserID string, query string, pageInfo entity.PageInfo) (entity.Pagination[entity.Thread], error)

FindAllWithQueryAndPagination provides a mock function with given fields: ctx, accessorUserID, query, pageInfo

func (*ThreadRepository) FindByID

func (_m *ThreadRepository) FindByID(ctx context.Context, accessorUserID string, ID string) (entity.Thread, error)

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

func (*ThreadRepository) FindCommentByID

func (_m *ThreadRepository) FindCommentByID(ctx context.Context, ID string) (entity.Comment, error)

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

func (*ThreadRepository) IncrementTotalViewer

func (_m *ThreadRepository) IncrementTotalViewer(ID string) error

IncrementTotalViewer provides a mock function with given fields: ID

func (*ThreadRepository) Insert

func (_m *ThreadRepository) Insert(ctx context.Context, _a1 entity.Thread) error

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

func (*ThreadRepository) InsertComment

func (_m *ThreadRepository) InsertComment(ctx context.Context, comment entity.Comment) error

InsertComment provides a mock function with given fields: ctx, comment

func (*ThreadRepository) InsertFollowThread

func (_m *ThreadRepository) InsertFollowThread(ctx context.Context, threadFollow entity.ThreadFollow) error

InsertFollowThread provides a mock function with given fields: ctx, threadFollow

func (*ThreadRepository) InsertLike

func (_m *ThreadRepository) InsertLike(ctx context.Context, like entity.Like) error

InsertLike provides a mock function with given fields: ctx, like

func (*ThreadRepository) InsertModerator

func (_m *ThreadRepository) InsertModerator(ctx context.Context, moderator entity.Moderator) error

InsertModerator provides a mock function with given fields: ctx, moderator

func (*ThreadRepository) Update

func (_m *ThreadRepository) Update(ctx context.Context, ID string, _a2 entity.Thread) error

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

Jump to

Keyboard shortcuts

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