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: 6 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 MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) AddNewPin

func (m *MockRepository) AddNewPin(ctx context.Context, pin *pin.Pin) error

AddNewPin mocks base method.

func (*MockRepository) DelLike

func (m *MockRepository) DelLike(ctx context.Context, pinID, userID int) (int, error)

DelLike mocks base method.

func (*MockRepository) DeletePin

func (m *MockRepository) DeletePin(ctx context.Context, pinID, userID int) error

DeletePin mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) EditPin

func (m *MockRepository) EditPin(ctx context.Context, pinID, userID int, updateData pin0.S, titleTags []string) error

EditPin mocks base method.

func (*MockRepository) GetAuthorPin

func (m *MockRepository) GetAuthorPin(ctx context.Context, pinID int) (*user.User, error)

GetAuthorPin mocks base method.

func (*MockRepository) GetBatchPinByID

func (m *MockRepository) GetBatchPinByID(ctx context.Context, pinID []int) ([]pin.Pin, error)

GetBatchPinByID mocks base method.

func (*MockRepository) GetCountLikeByPinID

func (m *MockRepository) GetCountLikeByPinID(ctx context.Context, pinID int) (int, error)

GetCountLikeByPinID mocks base method.

func (*MockRepository) GetFeedPins

func (m *MockRepository) GetFeedPins(ctx context.Context, cfg pin.FeedPinConfig) (pin.FeedPin, error)

GetFeedPins mocks base method.

func (*MockRepository) GetPinByID

func (m *MockRepository) GetPinByID(ctx context.Context, pinID int, revealAuthor bool) (*pin.Pin, error)

GetPinByID mocks base method.

func (*MockRepository) GetTagsByPinID

func (m *MockRepository) GetTagsByPinID(ctx context.Context, pinID int) ([]pin.Tag, error)

GetTagsByPinID mocks base method.

func (*MockRepository) IsAvailableToUserAsContributorBoard

func (m *MockRepository) IsAvailableToUserAsContributorBoard(ctx context.Context, pinID, userID int) (bool, error)

IsAvailableToUserAsContributorBoard mocks base method.

func (*MockRepository) IsSetLike

func (m *MockRepository) IsSetLike(ctx context.Context, pinID, userID int) (bool, error)

IsSetLike mocks base method.

func (*MockRepository) SetLike

func (m *MockRepository) SetLike(ctx context.Context, pinID, userID int) (int, error)

SetLike mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) AddNewPin

func (mr *MockRepositoryMockRecorder) AddNewPin(ctx, pin interface{}) *gomock.Call

AddNewPin indicates an expected call of AddNewPin.

func (*MockRepositoryMockRecorder) DelLike

func (mr *MockRepositoryMockRecorder) DelLike(ctx, pinID, userID interface{}) *gomock.Call

DelLike indicates an expected call of DelLike.

func (*MockRepositoryMockRecorder) DeletePin

func (mr *MockRepositoryMockRecorder) DeletePin(ctx, pinID, userID interface{}) *gomock.Call

DeletePin indicates an expected call of DeletePin.

func (*MockRepositoryMockRecorder) EditPin

func (mr *MockRepositoryMockRecorder) EditPin(ctx, pinID, userID, updateData, titleTags interface{}) *gomock.Call

EditPin indicates an expected call of EditPin.

func (*MockRepositoryMockRecorder) GetAuthorPin

func (mr *MockRepositoryMockRecorder) GetAuthorPin(ctx, pinID interface{}) *gomock.Call

GetAuthorPin indicates an expected call of GetAuthorPin.

func (*MockRepositoryMockRecorder) GetBatchPinByID

func (mr *MockRepositoryMockRecorder) GetBatchPinByID(ctx, pinID interface{}) *gomock.Call

GetBatchPinByID indicates an expected call of GetBatchPinByID.

func (*MockRepositoryMockRecorder) GetCountLikeByPinID

func (mr *MockRepositoryMockRecorder) GetCountLikeByPinID(ctx, pinID interface{}) *gomock.Call

GetCountLikeByPinID indicates an expected call of GetCountLikeByPinID.

func (*MockRepositoryMockRecorder) GetFeedPins

func (mr *MockRepositoryMockRecorder) GetFeedPins(ctx, cfg interface{}) *gomock.Call

GetFeedPins indicates an expected call of GetFeedPins.

func (*MockRepositoryMockRecorder) GetPinByID

func (mr *MockRepositoryMockRecorder) GetPinByID(ctx, pinID, revealAuthor interface{}) *gomock.Call

GetPinByID indicates an expected call of GetPinByID.

func (*MockRepositoryMockRecorder) GetTagsByPinID

func (mr *MockRepositoryMockRecorder) GetTagsByPinID(ctx, pinID interface{}) *gomock.Call

GetTagsByPinID indicates an expected call of GetTagsByPinID.

func (*MockRepositoryMockRecorder) IsAvailableToUserAsContributorBoard

func (mr *MockRepositoryMockRecorder) IsAvailableToUserAsContributorBoard(ctx, pinID, userID interface{}) *gomock.Call

IsAvailableToUserAsContributorBoard indicates an expected call of IsAvailableToUserAsContributorBoard.

func (*MockRepositoryMockRecorder) IsSetLike

func (mr *MockRepositoryMockRecorder) IsSetLike(ctx, pinID, userID interface{}) *gomock.Call

IsSetLike indicates an expected call of IsSetLike.

func (*MockRepositoryMockRecorder) SetLike

func (mr *MockRepositoryMockRecorder) SetLike(ctx, pinID, userID interface{}) *gomock.Call

SetLike indicates an expected call of SetLike.

Jump to

Keyboard shortcuts

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