domain_mock

package
v0.0.0-...-23502e9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package domain_mock is a generated GoMock package.

Package domain_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInteractionRepository

type MockInteractionRepository struct {
	// contains filtered or unexported fields
}

MockInteractionRepository is a mock of InteractionRepository interface.

func NewMockInteractionRepository

func NewMockInteractionRepository(ctrl *gomock.Controller) *MockInteractionRepository

NewMockInteractionRepository creates a new mock instance.

func (*MockInteractionRepository) BatchIncrReadCount

func (m *MockInteractionRepository) BatchIncrReadCount(c context.Context, biz []string, id []int64) error

BatchIncrReadCount mocks base method.

func (*MockInteractionRepository) CancelCollect

func (m *MockInteractionRepository) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error

CancelCollect mocks base method.

func (*MockInteractionRepository) CancelLike

func (m *MockInteractionRepository) CancelLike(c context.Context, biz string, bizID, userID int64) error

CancelLike mocks base method.

func (*MockInteractionRepository) Collect

func (m *MockInteractionRepository) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error

Collect mocks base method.

func (*MockInteractionRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInteractionRepository) GetByIDs

GetByIDs mocks base method.

func (*MockInteractionRepository) IncrReadCount

func (m *MockInteractionRepository) IncrReadCount(c context.Context, biz string, id int64) error

IncrReadCount mocks base method.

func (*MockInteractionRepository) Like

func (m *MockInteractionRepository) Like(c context.Context, biz string, bizID, userID int64) error

Like mocks base method.

func (*MockInteractionRepository) Stat

Stat mocks base method.

type MockInteractionRepositoryMockRecorder

type MockInteractionRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockInteractionRepositoryMockRecorder is the mock recorder for MockInteractionRepository.

func (*MockInteractionRepositoryMockRecorder) BatchIncrReadCount

func (mr *MockInteractionRepositoryMockRecorder) BatchIncrReadCount(c, biz, id any) *gomock.Call

BatchIncrReadCount indicates an expected call of BatchIncrReadCount.

func (*MockInteractionRepositoryMockRecorder) CancelCollect

func (mr *MockInteractionRepositoryMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call

CancelCollect indicates an expected call of CancelCollect.

func (*MockInteractionRepositoryMockRecorder) CancelLike

func (mr *MockInteractionRepositoryMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call

CancelLike indicates an expected call of CancelLike.

func (*MockInteractionRepositoryMockRecorder) Collect

func (mr *MockInteractionRepositoryMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call

Collect indicates an expected call of Collect.

func (*MockInteractionRepositoryMockRecorder) GetByIDs

func (mr *MockInteractionRepositoryMockRecorder) GetByIDs(c, biz, id any) *gomock.Call

GetByIDs indicates an expected call of GetByIDs.

func (*MockInteractionRepositoryMockRecorder) IncrReadCount

func (mr *MockInteractionRepositoryMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call

IncrReadCount indicates an expected call of IncrReadCount.

func (*MockInteractionRepositoryMockRecorder) Like

func (mr *MockInteractionRepositoryMockRecorder) Like(c, biz, bizID, userID any) *gomock.Call

Like indicates an expected call of Like.

func (*MockInteractionRepositoryMockRecorder) Stat

func (mr *MockInteractionRepositoryMockRecorder) Stat(c, biz, bizID, userID any) *gomock.Call

Stat indicates an expected call of Stat.

type MockInteractionUseCase

type MockInteractionUseCase struct {
	// contains filtered or unexported fields
}

MockInteractionUseCase is a mock of InteractionUseCase interface.

func NewMockInteractionUseCase

func NewMockInteractionUseCase(ctrl *gomock.Controller) *MockInteractionUseCase

NewMockInteractionUseCase creates a new mock instance.

func (*MockInteractionUseCase) CancelCollect

func (m *MockInteractionUseCase) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error

CancelCollect mocks base method.

func (*MockInteractionUseCase) CancelLike

func (m *MockInteractionUseCase) CancelLike(c context.Context, biz string, bizID, userID int64) error

CancelLike mocks base method.

func (*MockInteractionUseCase) Collect

func (m *MockInteractionUseCase) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error

Collect mocks base method.

func (*MockInteractionUseCase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInteractionUseCase) IncrReadCount

func (m *MockInteractionUseCase) IncrReadCount(c context.Context, biz string, id int64) error

IncrReadCount mocks base method.

func (*MockInteractionUseCase) Info

Info mocks base method.

func (*MockInteractionUseCase) Like

func (m *MockInteractionUseCase) Like(c context.Context, biz string, bizID, userID int64) error

Like mocks base method.

type MockInteractionUseCaseMockRecorder

type MockInteractionUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockInteractionUseCaseMockRecorder is the mock recorder for MockInteractionUseCase.

func (*MockInteractionUseCaseMockRecorder) CancelCollect

func (mr *MockInteractionUseCaseMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call

CancelCollect indicates an expected call of CancelCollect.

func (*MockInteractionUseCaseMockRecorder) CancelLike

func (mr *MockInteractionUseCaseMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call

CancelLike indicates an expected call of CancelLike.

func (*MockInteractionUseCaseMockRecorder) Collect

func (mr *MockInteractionUseCaseMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call

Collect indicates an expected call of Collect.

func (*MockInteractionUseCaseMockRecorder) IncrReadCount

func (mr *MockInteractionUseCaseMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call

IncrReadCount indicates an expected call of IncrReadCount.

func (*MockInteractionUseCaseMockRecorder) Info

func (mr *MockInteractionUseCaseMockRecorder) Info(c, biz, bizID, userID any) *gomock.Call

Info indicates an expected call of Info.

func (*MockInteractionUseCaseMockRecorder) Like

func (mr *MockInteractionUseCaseMockRecorder) Like(c, biz, bizID, userID any) *gomock.Call

Like indicates an expected call of Like.

type MockPostRepository

type MockPostRepository struct {
	// contains filtered or unexported fields
}

MockPostRepository is a mock of PostRepository interface.

func NewMockPostRepository

func NewMockPostRepository(ctrl *gomock.Controller) *MockPostRepository

NewMockPostRepository creates a new mock instance.

func (*MockPostRepository) Count

func (m *MockPostRepository) Count(c context.Context, filter any) (int64, error)

Count mocks base method.

func (*MockPostRepository) Create

func (m *MockPostRepository) Create(c context.Context, post domain.Post) error

Create mocks base method.

func (*MockPostRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPostRepository) FindMany

func (m *MockPostRepository) FindMany(c context.Context, filter any) ([]domain.Post, error)

FindMany mocks base method.

func (*MockPostRepository) FindTopNPage

func (m *MockPostRepository) FindTopNPage(c context.Context, page, size int, begin time.Time) ([]domain.Post, error)

FindTopNPage mocks base method.

func (*MockPostRepository) GetByID

func (m *MockPostRepository) GetByID(c context.Context, id int64) (domain.Post, error)

GetByID mocks base method.

func (*MockPostRepository) List

func (m *MockPostRepository) List(c context.Context, filter any, page, size int) ([]domain.Post, error)

List mocks base method.

type MockPostRepositoryMockRecorder

type MockPostRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.

func (*MockPostRepositoryMockRecorder) Count

func (mr *MockPostRepositoryMockRecorder) Count(c, filter any) *gomock.Call

Count indicates an expected call of Count.

func (*MockPostRepositoryMockRecorder) Create

func (mr *MockPostRepositoryMockRecorder) Create(c, post any) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostRepositoryMockRecorder) FindMany

func (mr *MockPostRepositoryMockRecorder) FindMany(c, filter any) *gomock.Call

FindMany indicates an expected call of FindMany.

func (*MockPostRepositoryMockRecorder) FindTopNPage

func (mr *MockPostRepositoryMockRecorder) FindTopNPage(c, page, size, begin any) *gomock.Call

FindTopNPage indicates an expected call of FindTopNPage.

func (*MockPostRepositoryMockRecorder) GetByID

func (mr *MockPostRepositoryMockRecorder) GetByID(c, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockPostRepositoryMockRecorder) List

func (mr *MockPostRepositoryMockRecorder) List(c, filter, page, size any) *gomock.Call

List indicates an expected call of List.

type MockPostUsecase

type MockPostUsecase struct {
	// contains filtered or unexported fields
}

MockPostUsecase is a mock of PostUsecase interface.

func NewMockPostUsecase

func NewMockPostUsecase(ctrl *gomock.Controller) *MockPostUsecase

NewMockPostUsecase creates a new mock instance.

func (*MockPostUsecase) Create

func (m *MockPostUsecase) Create(c context.Context, post domain.Post) error

Create mocks base method.

func (*MockPostUsecase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPostUsecase) Info

func (m *MockPostUsecase) Info(c context.Context, postID int64) (domain.Post, error)

Info mocks base method.

func (*MockPostUsecase) List

func (m *MockPostUsecase) List(c context.Context, filter any, page, size int) ([]domain.Post, int64, error)

List mocks base method.

type MockPostUsecaseMockRecorder

type MockPostUsecaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockPostUsecaseMockRecorder is the mock recorder for MockPostUsecase.

func (*MockPostUsecaseMockRecorder) Create

func (mr *MockPostUsecaseMockRecorder) Create(c, post any) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostUsecaseMockRecorder) Info

func (mr *MockPostUsecaseMockRecorder) Info(c, postID any) *gomock.Call

Info indicates an expected call of Info.

func (*MockPostUsecaseMockRecorder) List

func (mr *MockPostUsecaseMockRecorder) List(c, filter, page, size any) *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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