mock

package
v0.0.0-...-36feab7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockLikeRepository

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

MockLikeRepository is a mock of LikeRepository interface.

func NewMockLikeRepository

func NewMockLikeRepository(ctrl *gomock.Controller) *MockLikeRepository

NewMockLikeRepository creates a new mock instance.

func (*MockLikeRepository) Create

func (m *MockLikeRepository) Create(ctx context.Context, postID int, userReferenceID string) error

Create mocks base method.

func (*MockLikeRepository) Delete

func (m *MockLikeRepository) Delete(ctx context.Context, postID int, userReferenceID string) error

Delete mocks base method.

func (*MockLikeRepository) EXPECT

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

type MockLikeRepositoryMockRecorder

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

MockLikeRepositoryMockRecorder is the mock recorder for MockLikeRepository.

func (*MockLikeRepositoryMockRecorder) Create

func (mr *MockLikeRepositoryMockRecorder) Create(ctx, postID, userReferenceID interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockLikeRepositoryMockRecorder) Delete

func (mr *MockLikeRepositoryMockRecorder) Delete(ctx, postID, userReferenceID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

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) Create

func (m *MockPostRepository) Create(ctx context.Context, p *model.Post) error

Create mocks base method.

func (*MockPostRepository) EXPECT

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

func (*MockPostRepository) Get

func (m *MockPostRepository) Get(ctx context.Context, referenceID, userReferenceID string) (*model.Post, error)

Get mocks base method.

func (*MockPostRepository) GetFeed

func (m *MockPostRepository) GetFeed(ctx context.Context, userReferenceID string) ([]*dto.FeedItem, error)

GetFeed mocks base method.

type MockPostRepositoryMockRecorder

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

MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.

func (*MockPostRepositoryMockRecorder) Create

func (mr *MockPostRepositoryMockRecorder) Create(ctx, p interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostRepositoryMockRecorder) Get

func (mr *MockPostRepositoryMockRecorder) Get(ctx, referenceID, userReferenceID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPostRepositoryMockRecorder) GetFeed

func (mr *MockPostRepositoryMockRecorder) GetFeed(ctx, userReferenceID interface{}) *gomock.Call

GetFeed indicates an expected call of GetFeed.

Jump to

Keyboard shortcuts

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