mock

package
v0.0.0-...-38b1c69 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUsecase

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

MockUsecase is a mock of Usecase interface.

func NewMockUsecase

func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase

NewMockUsecase creates a new mock instance.

func (*MockUsecase) DeleteComment

func (m *MockUsecase) DeleteComment(ctx context.Context, userID, commentID int) error

DeleteComment mocks base method.

func (*MockUsecase) EXPECT

func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder

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

func (*MockUsecase) GetCommentWithAuthor

func (m *MockUsecase) GetCommentWithAuthor(ctx context.Context, commentID int) (*comment.Comment, error)

GetCommentWithAuthor mocks base method.

func (*MockUsecase) GetFeedCommentOnPin

func (m *MockUsecase) GetFeedCommentOnPin(ctx context.Context, userID, pinID, count, lastID int) ([]comment.Comment, int, error)

GetFeedCommentOnPin mocks base method.

func (*MockUsecase) PutCommentOnPin

func (m *MockUsecase) PutCommentOnPin(ctx context.Context, userID int, comment *comment.Comment) (int, error)

PutCommentOnPin mocks base method.

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase.

func (*MockUsecaseMockRecorder) DeleteComment

func (mr *MockUsecaseMockRecorder) DeleteComment(ctx, userID, commentID interface{}) *gomock.Call

DeleteComment indicates an expected call of DeleteComment.

func (*MockUsecaseMockRecorder) GetCommentWithAuthor

func (mr *MockUsecaseMockRecorder) GetCommentWithAuthor(ctx, commentID interface{}) *gomock.Call

GetCommentWithAuthor indicates an expected call of GetCommentWithAuthor.

func (*MockUsecaseMockRecorder) GetFeedCommentOnPin

func (mr *MockUsecaseMockRecorder) GetFeedCommentOnPin(ctx, userID, pinID, count, lastID interface{}) *gomock.Call

GetFeedCommentOnPin indicates an expected call of GetFeedCommentOnPin.

func (*MockUsecaseMockRecorder) PutCommentOnPin

func (mr *MockUsecaseMockRecorder) PutCommentOnPin(ctx, userID, comment interface{}) *gomock.Call

PutCommentOnPin indicates an expected call of PutCommentOnPin.

type MockavailablePinChecker

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

MockavailablePinChecker is a mock of availablePinChecker interface.

func NewMockavailablePinChecker

func NewMockavailablePinChecker(ctrl *gomock.Controller) *MockavailablePinChecker

NewMockavailablePinChecker creates a new mock instance.

func (*MockavailablePinChecker) EXPECT

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

func (*MockavailablePinChecker) GetAuthorIdOfThePin

func (m *MockavailablePinChecker) GetAuthorIdOfThePin(ctx context.Context, pinID int) (int, error)

GetAuthorIdOfThePin mocks base method.

func (*MockavailablePinChecker) IsAvailablePinForViewingUser

func (m *MockavailablePinChecker) IsAvailablePinForViewingUser(ctx context.Context, userID, pinID int) error

IsAvailablePinForViewingUser mocks base method.

type MockavailablePinCheckerMockRecorder

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

MockavailablePinCheckerMockRecorder is the mock recorder for MockavailablePinChecker.

func (*MockavailablePinCheckerMockRecorder) GetAuthorIdOfThePin

func (mr *MockavailablePinCheckerMockRecorder) GetAuthorIdOfThePin(ctx, pinID interface{}) *gomock.Call

GetAuthorIdOfThePin indicates an expected call of GetAuthorIdOfThePin.

func (*MockavailablePinCheckerMockRecorder) IsAvailablePinForViewingUser

func (mr *MockavailablePinCheckerMockRecorder) IsAvailablePinForViewingUser(ctx, userID, pinID interface{}) *gomock.Call

IsAvailablePinForViewingUser indicates an expected call of IsAvailablePinForViewingUser.

Jump to

Keyboard shortcuts

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