mocks

package
v0.0.0-...-5c9176d Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 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 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

type AuthorUsecase

type AuthorUsecase struct {
	mock.Mock
}

AuthorUsecase is an autogenerated mock type for the AuthorUsecase type

func (*AuthorUsecase) GetByID

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

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

type PostRepository

type PostRepository struct {
	mock.Mock
}

PostRepository is an autogenerated mock type for the PostRepository type

func (*PostRepository) Delete

func (_m *PostRepository) Delete(ctx context.Context, id int64) error

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

func (*PostRepository) Fetch

func (_m *PostRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)

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

func (*PostRepository) GetByID

func (_m *PostRepository) GetByID(ctx context.Context, id int64) (domain.Post, error)

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

func (*PostRepository) GetByTitle

func (_m *PostRepository) GetByTitle(ctx context.Context, title string) (domain.Post, error)

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

func (*PostRepository) Store

func (_m *PostRepository) Store(ctx context.Context, p *domain.Post) error

Store provides a mock function with given fields: ctx, p

func (*PostRepository) Update

func (_m *PostRepository) Update(ctx context.Context, p *domain.Post) error

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

type PostUsecase

type PostUsecase struct {
	mock.Mock
}

PostUsecase is an autogenerated mock type for the PostUsecase type

func (*PostUsecase) Delete

func (_m *PostUsecase) Delete(ctx context.Context, id int64) error

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

func (*PostUsecase) Fetch

func (_m *PostUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Post, string, error)

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

func (*PostUsecase) GetByID

func (_m *PostUsecase) GetByID(ctx context.Context, id int64) (domain.Post, error)

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

func (*PostUsecase) GetByTitle

func (_m *PostUsecase) GetByTitle(ctx context.Context, title string) (domain.Post, error)

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

func (*PostUsecase) Store

func (_m *PostUsecase) Store(ctx context.Context, p *domain.Post) error

Store provides a mock function with given fields: ctx, p

func (*PostUsecase) Update

func (_m *PostUsecase) Update(ctx context.Context, p *domain.Post) error

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

Jump to

Keyboard shortcuts

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