mocks

package
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 ArticleRepository

type ArticleRepository struct {
	mock.Mock
}

ArticleRepository is an autogenerated mock type for the ArticleRepository type

func (*ArticleRepository) Delete

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

Delete provides a mock function with given fields: id

func (*ArticleRepository) Fetch

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

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

func (*ArticleRepository) GetByID

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

GetByID provides a mock function with given fields: id

func (*ArticleRepository) GetByTitle

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

GetByTitle provides a mock function with given fields: title

func (*ArticleRepository) Store

func (_m *ArticleRepository) Store(a *article.Article) (int64, error)

Store provides a mock function with given fields: a

func (*ArticleRepository) Update

func (_m *ArticleRepository) Update(_a0 *article.Article) (*article.Article, error)

Update provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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