mock_article

package
v0.0.0-...-53a7344 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_article is a generated GoMock package.

Package mock_article 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) Delete

func (m *MockRepository) Delete(ctx context.Context, id int64) error

Delete mocks base method

func (*MockRepository) EXPECT

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

func (*MockRepository) Fetch

func (m *MockRepository) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)

Fetch mocks base method

func (*MockRepository) GetByID

func (m *MockRepository) GetByID(ctx context.Context, id int64) (*entity.Article, error)

GetByID mocks base method

func (*MockRepository) GetByTitle

func (m *MockRepository) GetByTitle(ctx context.Context, title string) (*entity.Article, error)

GetByTitle mocks base method

func (*MockRepository) Store

func (m *MockRepository) Store(ctx context.Context, a *entity.Article) error

Store mocks base method

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, ar *entity.Article) error

Update mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockRepositoryMockRecorder) Fetch

func (mr *MockRepositoryMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

func (*MockRepositoryMockRecorder) GetByID

func (mr *MockRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

func (*MockRepositoryMockRecorder) GetByTitle

func (mr *MockRepositoryMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call

GetByTitle indicates an expected call of GetByTitle

func (*MockRepositoryMockRecorder) Store

func (mr *MockRepositoryMockRecorder) Store(ctx, a interface{}) *gomock.Call

Store indicates an expected call of Store

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, ar interface{}) *gomock.Call

Update indicates an expected call of Update

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

func (m *MockUsecase) Delete(ctx context.Context, id int64) error

Delete 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) Fetch

func (m *MockUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)

Fetch mocks base method

func (*MockUsecase) GetByID

func (m *MockUsecase) GetByID(ctx context.Context, id int64) (*entity.Article, error)

GetByID mocks base method

func (*MockUsecase) GetByTitle

func (m *MockUsecase) GetByTitle(ctx context.Context, title string) (*entity.Article, error)

GetByTitle mocks base method

func (*MockUsecase) Store

func (m *MockUsecase) Store(arg0 context.Context, arg1 *entity.Article) error

Store mocks base method

func (*MockUsecase) Update

func (m *MockUsecase) Update(ctx context.Context, ar *entity.Article) error

Update mocks base method

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase

func (*MockUsecaseMockRecorder) Delete

func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockUsecaseMockRecorder) Fetch

func (mr *MockUsecaseMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

func (*MockUsecaseMockRecorder) GetByID

func (mr *MockUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

func (*MockUsecaseMockRecorder) GetByTitle

func (mr *MockUsecaseMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call

GetByTitle indicates an expected call of GetByTitle

func (*MockUsecaseMockRecorder) Store

func (mr *MockUsecaseMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call

Store indicates an expected call of Store

func (*MockUsecaseMockRecorder) Update

func (mr *MockUsecaseMockRecorder) Update(ctx, ar interface{}) *gomock.Call

Update indicates an expected call of Update

Jump to

Keyboard shortcuts

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