mocks

package
v0.0.0-...-a14c94d Latest Latest
Warning

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

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

Documentation

Overview

Code generated by mockery v1.0.0. DO NOT EDIT.

Code generated by mockery v1.0.0. DO NOT EDIT.

Code generated by mockery v1.0.0. DO NOT EDIT.

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) ([]domain.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) (domain.Article, error)

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

func (*ArticleRepository) GetByTitle

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

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

func (*ArticleRepository) Store

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

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

func (*ArticleRepository) Update

func (_m *ArticleRepository) Update(ctx context.Context, ar *domain.Article) error

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

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) ([]domain.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) (domain.Article, error)

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

func (*ArticleUsecase) GetByTitle

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

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

func (*ArticleUsecase) Store

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

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

func (*ArticleUsecase) Update

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

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

type AuthorRepository

type AuthorRepository struct {
	mock.Mock
}

AuthorRepository is an autogenerated mock type for the AuthorRepository type

func (*AuthorRepository) GetByID

func (_m *AuthorRepository) GetByID(ctx context.Context, id int64) (domain.Author, error)

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

Jump to

Keyboard shortcuts

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