mocks

package
v0.0.0-...-adc7e29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleRepository

type ArticleRepository struct {
	mock.Mock
}

ArticleRepository is an autogenerated mock type for the ArticleRepository type

func (*ArticleRepository) Delete

func (_m *ArticleRepository) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*ArticleRepository) Fetch

func (_m *ArticleRepository) Fetch(ctx context.Context, cursor string, num int64) ([]menekel.Article, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*ArticleRepository) GetByID

func (_m *ArticleRepository) GetByID(ctx context.Context, id int64) (menekel.Article, error)

GetByID provides a mock function with given fields: ctx, id

func (*ArticleRepository) GetByTitle

func (_m *ArticleRepository) GetByTitle(ctx context.Context, title string) (menekel.Article, error)

GetByTitle provides a mock function with given fields: ctx, title

func (*ArticleRepository) Store

Store provides a mock function with given fields: ctx, a

func (*ArticleRepository) Update

func (_m *ArticleRepository) Update(ctx context.Context, article *menekel.Article) error

Update provides a mock function with given fields: ctx, article

type ArticleUsecase

type ArticleUsecase struct {
	mock.Mock
}

ArticleUsecase is an autogenerated mock type for the ArticleUsecase type

func (*ArticleUsecase) Delete

func (_m *ArticleUsecase) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*ArticleUsecase) Fetch

func (_m *ArticleUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]menekel.Article, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*ArticleUsecase) GetByID

func (_m *ArticleUsecase) GetByID(ctx context.Context, id int64) (menekel.Article, error)

GetByID provides a mock function with given fields: ctx, id

func (*ArticleUsecase) GetByTitle

func (_m *ArticleUsecase) GetByTitle(ctx context.Context, title string) (menekel.Article, error)

GetByTitle provides a mock function with given fields: ctx, title

func (*ArticleUsecase) Store

func (_m *ArticleUsecase) Store(_a0 context.Context, _a1 *menekel.Article) error

Store provides a mock function with given fields: _a0, _a1

func (*ArticleUsecase) Update

func (_m *ArticleUsecase) Update(ctx context.Context, ar *menekel.Article) error

Update provides a mock function with given fields: ctx, ar

Jump to

Keyboard shortcuts

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