mocks

package
v0.0.0-...-af7f33b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) CreateArticle

func (_m *Repository) CreateArticle(a *model.Article) error

CreateArticle provides a mock function with given fields: a

func (*Repository) GetAllArticle

func (_m *Repository) GetAllArticle() ([]*model.Article, error)

GetAllArticle provides a mock function with given fields:

func (*Repository) GetArticleByID

func (_m *Repository) GetArticleByID(id int) (*model.Article, error)

GetArticleByID provides a mock function with given fields: id

type Usecase

type Usecase struct {
	mock.Mock
}

Usecase is an autogenerated mock type for the Usecase type

func (*Usecase) CreateArticle

func (_m *Usecase) CreateArticle(a *model.Article) error

CreateArticle provides a mock function with given fields: a

func (*Usecase) GetAllArticle

func (_m *Usecase) GetAllArticle() ([]*model.Article, error)

GetAllArticle provides a mock function with given fields:

func (*Usecase) GetArticleByID

func (_m *Usecase) GetArticleByID(id int) (*model.Article, error)

GetArticleByID provides a mock function with given fields: id

Jump to

Keyboard shortcuts

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