mocks

package
Version: v0.0.0-...-76ef0be Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleUsecase

type ArticleUsecase struct {
	mock.Mock
}

ArticleUsecase is an autogenerated mock type for the ArticleUsecase type

func (*ArticleUsecase) Delete

func (_m *ArticleUsecase) Delete(id int64) (bool, error)

Delete provides a mock function with given fields: id

func (*ArticleUsecase) Fetch

func (_m *ArticleUsecase) Fetch(cursor string, num int64) ([]*article.Article, string, error)

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

func (*ArticleUsecase) GetByID

func (_m *ArticleUsecase) GetByID(id int64) (*article.Article, error)

GetByID provides a mock function with given fields: id

func (*ArticleUsecase) GetByTitle

func (_m *ArticleUsecase) GetByTitle(title string) (*article.Article, error)

GetByTitle provides a mock function with given fields: title

func (*ArticleUsecase) Store

func (_m *ArticleUsecase) Store(_a0 *article.Article) (*article.Article, error)

Store provides a mock function with given fields: _a0

func (*ArticleUsecase) Update

func (_m *ArticleUsecase) Update(ar *article.Article) (*article.Article, error)

Update provides a mock function with given fields: ar

Jump to

Keyboard shortcuts

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