mockdb

package
v0.0.0-...-e38dd13 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mockdb is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) CountArticle

func (m *MockRepository) CountArticle(arg0 context.Context, arg1 string) (int64, error)

CountArticle mocks base method.

func (*MockRepository) CountCategory

func (m *MockRepository) CountCategory(arg0 context.Context, arg1 string) (int64, error)

CountCategory mocks base method.

func (*MockRepository) CountLabel

func (m *MockRepository) CountLabel(arg0 context.Context, arg1 string) (int64, error)

CountLabel mocks base method.

func (*MockRepository) CountUser

func (m *MockRepository) CountUser(arg0 context.Context, arg1 postgresql.CountUserParams) (int64, error)

CountUser mocks base method.

func (*MockRepository) CreateArticle

CreateArticle mocks base method.

func (*MockRepository) CreateArticleCategory

CreateArticleCategory mocks base method.

func (*MockRepository) CreateArticleLabel

CreateArticleLabel mocks base method.

func (*MockRepository) CreateCategory

CreateCategory mocks base method.

func (*MockRepository) CreateLabel

CreateLabel mocks base method.

func (*MockRepository) CreateUser

CreateUser mocks base method.

func (*MockRepository) DeleteArticle

func (m *MockRepository) DeleteArticle(arg0 context.Context, arg1 int64) error

DeleteArticle mocks base method.

func (*MockRepository) DeleteArticleCategory

func (m *MockRepository) DeleteArticleCategory(arg0 context.Context, arg1 postgresql.DeleteArticleCategoryParams) error

DeleteArticleCategory mocks base method.

func (*MockRepository) DeleteArticleLabel

func (m *MockRepository) DeleteArticleLabel(arg0 context.Context, arg1 postgresql.DeleteArticleLabelParams) error

DeleteArticleLabel mocks base method.

func (*MockRepository) DeleteCategory

func (m *MockRepository) DeleteCategory(arg0 context.Context, arg1 int64) error

DeleteCategory mocks base method.

func (*MockRepository) DeleteLabel

func (m *MockRepository) DeleteLabel(arg0 context.Context, arg1 int64) error

DeleteLabel mocks base method.

func (*MockRepository) DeleteUser

func (m *MockRepository) DeleteUser(arg0 context.Context, arg1 int64) error

DeleteUser mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) ExecTx

func (m *MockRepository) ExecTx(arg0 context.Context, arg1 func(postgresql.Querier) error) error

ExecTx mocks base method.

func (*MockRepository) GetArticle

func (m *MockRepository) GetArticle(arg0 context.Context, arg1 int64) (postgresql.Article, error)

GetArticle mocks base method.

func (*MockRepository) GetArticleCategory

GetArticleCategory mocks base method.

func (*MockRepository) GetArticleLabel

GetArticleLabel mocks base method.

func (*MockRepository) GetArticlesByCategoryID

func (m *MockRepository) GetArticlesByCategoryID(arg0 context.Context, arg1 int64) ([]postgresql.ArticlesCategory, error)

GetArticlesByCategoryID mocks base method.

func (*MockRepository) GetArticlesByLabelID

func (m *MockRepository) GetArticlesByLabelID(arg0 context.Context, arg1 int64) ([]postgresql.ArticlesLabel, error)

GetArticlesByLabelID mocks base method.

func (*MockRepository) GetCategoriesByArticleID

func (m *MockRepository) GetCategoriesByArticleID(arg0 context.Context, arg1 int64) ([]postgresql.ArticlesCategory, error)

GetCategoriesByArticleID mocks base method.

func (*MockRepository) GetCategory

func (m *MockRepository) GetCategory(arg0 context.Context, arg1 int64) (postgresql.Category, error)

GetCategory mocks base method.

func (*MockRepository) GetLabel

func (m *MockRepository) GetLabel(arg0 context.Context, arg1 int64) (postgresql.Label, error)

GetLabel mocks base method.

func (*MockRepository) GetLabelsByArticleID

func (m *MockRepository) GetLabelsByArticleID(arg0 context.Context, arg1 int64) ([]postgresql.ArticlesLabel, error)

GetLabelsByArticleID mocks base method.

func (*MockRepository) GetUser

func (m *MockRepository) GetUser(arg0 context.Context, arg1 int64) (postgresql.User, error)

GetUser mocks base method.

func (*MockRepository) GetUserByEmail

func (m *MockRepository) GetUserByEmail(arg0 context.Context, arg1 string) (postgresql.User, error)

GetUserByEmail mocks base method.

func (*MockRepository) GetUserByUsername

func (m *MockRepository) GetUserByUsername(arg0 context.Context, arg1 string) (postgresql.User, error)

GetUserByUsername mocks base method.

func (*MockRepository) ListArticle

ListArticle mocks base method.

func (*MockRepository) ListCategory

ListCategory mocks base method.

func (*MockRepository) ListLabel

ListLabel mocks base method.

func (*MockRepository) ListUser

ListUser mocks base method.

func (*MockRepository) TreeCategory

func (m *MockRepository) TreeCategory(arg0 context.Context) ([]postgresql.TreeCategoryRow, error)

TreeCategory mocks base method.

func (*MockRepository) UpdateCategory

UpdateCategory mocks base method.

func (*MockRepository) UpdateLabel

UpdateLabel mocks base method.

func (*MockRepository) UpdateUser

UpdateUser mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) CountArticle

func (mr *MockRepositoryMockRecorder) CountArticle(arg0, arg1 interface{}) *gomock.Call

CountArticle indicates an expected call of CountArticle.

func (*MockRepositoryMockRecorder) CountCategory

func (mr *MockRepositoryMockRecorder) CountCategory(arg0, arg1 interface{}) *gomock.Call

CountCategory indicates an expected call of CountCategory.

func (*MockRepositoryMockRecorder) CountLabel

func (mr *MockRepositoryMockRecorder) CountLabel(arg0, arg1 interface{}) *gomock.Call

CountLabel indicates an expected call of CountLabel.

func (*MockRepositoryMockRecorder) CountUser

func (mr *MockRepositoryMockRecorder) CountUser(arg0, arg1 interface{}) *gomock.Call

CountUser indicates an expected call of CountUser.

func (*MockRepositoryMockRecorder) CreateArticle

func (mr *MockRepositoryMockRecorder) CreateArticle(arg0, arg1 interface{}) *gomock.Call

CreateArticle indicates an expected call of CreateArticle.

func (*MockRepositoryMockRecorder) CreateArticleCategory

func (mr *MockRepositoryMockRecorder) CreateArticleCategory(arg0, arg1 interface{}) *gomock.Call

CreateArticleCategory indicates an expected call of CreateArticleCategory.

func (*MockRepositoryMockRecorder) CreateArticleLabel

func (mr *MockRepositoryMockRecorder) CreateArticleLabel(arg0, arg1 interface{}) *gomock.Call

CreateArticleLabel indicates an expected call of CreateArticleLabel.

func (*MockRepositoryMockRecorder) CreateCategory

func (mr *MockRepositoryMockRecorder) CreateCategory(arg0, arg1 interface{}) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockRepositoryMockRecorder) CreateLabel

func (mr *MockRepositoryMockRecorder) CreateLabel(arg0, arg1 interface{}) *gomock.Call

CreateLabel indicates an expected call of CreateLabel.

func (*MockRepositoryMockRecorder) CreateUser

func (mr *MockRepositoryMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockRepositoryMockRecorder) DeleteArticle

func (mr *MockRepositoryMockRecorder) DeleteArticle(arg0, arg1 interface{}) *gomock.Call

DeleteArticle indicates an expected call of DeleteArticle.

func (*MockRepositoryMockRecorder) DeleteArticleCategory

func (mr *MockRepositoryMockRecorder) DeleteArticleCategory(arg0, arg1 interface{}) *gomock.Call

DeleteArticleCategory indicates an expected call of DeleteArticleCategory.

func (*MockRepositoryMockRecorder) DeleteArticleLabel

func (mr *MockRepositoryMockRecorder) DeleteArticleLabel(arg0, arg1 interface{}) *gomock.Call

DeleteArticleLabel indicates an expected call of DeleteArticleLabel.

func (*MockRepositoryMockRecorder) DeleteCategory

func (mr *MockRepositoryMockRecorder) DeleteCategory(arg0, arg1 interface{}) *gomock.Call

DeleteCategory indicates an expected call of DeleteCategory.

func (*MockRepositoryMockRecorder) DeleteLabel

func (mr *MockRepositoryMockRecorder) DeleteLabel(arg0, arg1 interface{}) *gomock.Call

DeleteLabel indicates an expected call of DeleteLabel.

func (*MockRepositoryMockRecorder) DeleteUser

func (mr *MockRepositoryMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockRepositoryMockRecorder) ExecTx

func (mr *MockRepositoryMockRecorder) ExecTx(arg0, arg1 interface{}) *gomock.Call

ExecTx indicates an expected call of ExecTx.

func (*MockRepositoryMockRecorder) GetArticle

func (mr *MockRepositoryMockRecorder) GetArticle(arg0, arg1 interface{}) *gomock.Call

GetArticle indicates an expected call of GetArticle.

func (*MockRepositoryMockRecorder) GetArticleCategory

func (mr *MockRepositoryMockRecorder) GetArticleCategory(arg0, arg1 interface{}) *gomock.Call

GetArticleCategory indicates an expected call of GetArticleCategory.

func (*MockRepositoryMockRecorder) GetArticleLabel

func (mr *MockRepositoryMockRecorder) GetArticleLabel(arg0, arg1 interface{}) *gomock.Call

GetArticleLabel indicates an expected call of GetArticleLabel.

func (*MockRepositoryMockRecorder) GetArticlesByCategoryID

func (mr *MockRepositoryMockRecorder) GetArticlesByCategoryID(arg0, arg1 interface{}) *gomock.Call

GetArticlesByCategoryID indicates an expected call of GetArticlesByCategoryID.

func (*MockRepositoryMockRecorder) GetArticlesByLabelID

func (mr *MockRepositoryMockRecorder) GetArticlesByLabelID(arg0, arg1 interface{}) *gomock.Call

GetArticlesByLabelID indicates an expected call of GetArticlesByLabelID.

func (*MockRepositoryMockRecorder) GetCategoriesByArticleID

func (mr *MockRepositoryMockRecorder) GetCategoriesByArticleID(arg0, arg1 interface{}) *gomock.Call

GetCategoriesByArticleID indicates an expected call of GetCategoriesByArticleID.

func (*MockRepositoryMockRecorder) GetCategory

func (mr *MockRepositoryMockRecorder) GetCategory(arg0, arg1 interface{}) *gomock.Call

GetCategory indicates an expected call of GetCategory.

func (*MockRepositoryMockRecorder) GetLabel

func (mr *MockRepositoryMockRecorder) GetLabel(arg0, arg1 interface{}) *gomock.Call

GetLabel indicates an expected call of GetLabel.

func (*MockRepositoryMockRecorder) GetLabelsByArticleID

func (mr *MockRepositoryMockRecorder) GetLabelsByArticleID(arg0, arg1 interface{}) *gomock.Call

GetLabelsByArticleID indicates an expected call of GetLabelsByArticleID.

func (*MockRepositoryMockRecorder) GetUser

func (mr *MockRepositoryMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockRepositoryMockRecorder) GetUserByEmail

func (mr *MockRepositoryMockRecorder) GetUserByEmail(arg0, arg1 interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockRepositoryMockRecorder) GetUserByUsername

func (mr *MockRepositoryMockRecorder) GetUserByUsername(arg0, arg1 interface{}) *gomock.Call

GetUserByUsername indicates an expected call of GetUserByUsername.

func (*MockRepositoryMockRecorder) ListArticle

func (mr *MockRepositoryMockRecorder) ListArticle(arg0, arg1 interface{}) *gomock.Call

ListArticle indicates an expected call of ListArticle.

func (*MockRepositoryMockRecorder) ListCategory

func (mr *MockRepositoryMockRecorder) ListCategory(arg0, arg1 interface{}) *gomock.Call

ListCategory indicates an expected call of ListCategory.

func (*MockRepositoryMockRecorder) ListLabel

func (mr *MockRepositoryMockRecorder) ListLabel(arg0, arg1 interface{}) *gomock.Call

ListLabel indicates an expected call of ListLabel.

func (*MockRepositoryMockRecorder) ListUser

func (mr *MockRepositoryMockRecorder) ListUser(arg0, arg1 interface{}) *gomock.Call

ListUser indicates an expected call of ListUser.

func (*MockRepositoryMockRecorder) TreeCategory

func (mr *MockRepositoryMockRecorder) TreeCategory(arg0 interface{}) *gomock.Call

TreeCategory indicates an expected call of TreeCategory.

func (*MockRepositoryMockRecorder) UpdateCategory

func (mr *MockRepositoryMockRecorder) UpdateCategory(arg0, arg1 interface{}) *gomock.Call

UpdateCategory indicates an expected call of UpdateCategory.

func (*MockRepositoryMockRecorder) UpdateLabel

func (mr *MockRepositoryMockRecorder) UpdateLabel(arg0, arg1 interface{}) *gomock.Call

UpdateLabel indicates an expected call of UpdateLabel.

func (*MockRepositoryMockRecorder) UpdateUser

func (mr *MockRepositoryMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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