Documentation ¶
Index ¶
- type ArticleService
- func (_m *ArticleService) Delete(ctx context.Context, id int64) error
- func (_m *ArticleService) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
- func (_m *ArticleService) GetByID(ctx context.Context, id int64) (domain.Article, error)
- func (_m *ArticleService) GetByTitle(ctx context.Context, title string) (domain.Article, error)
- func (_m *ArticleService) Store(_a0 context.Context, _a1 *domain.Article) error
- func (_m *ArticleService) Update(ctx context.Context, ar *domain.Article) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleService ¶
ArticleService is an autogenerated mock type for the ArticleService type
func NewArticleService ¶
func NewArticleService(t interface { mock.TestingT Cleanup(func()) }) *ArticleService
NewArticleService creates a new instance of ArticleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ArticleService) Delete ¶
func (_m *ArticleService) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*ArticleService) Fetch ¶
func (_m *ArticleService) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Article, string, error)
Fetch provides a mock function with given fields: ctx, cursor, num
func (*ArticleService) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
Click to show internal directories.
Click to hide internal directories.