mocks

package
v0.0.0-...-9f87b0a Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 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 ArticleService

type ArticleService struct {
	mock.Mock
}

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

func (_m *ArticleService) GetByID(ctx context.Context, id int64) (domain.Article, error)

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

func (*ArticleService) GetByTitle

func (_m *ArticleService) GetByTitle(ctx context.Context, title string) (domain.Article, error)

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

func (*ArticleService) Store

func (_m *ArticleService) Store(_a0 context.Context, _a1 *domain.Article) error

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

func (*ArticleService) Update

func (_m *ArticleService) Update(ctx context.Context, ar *domain.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