mockdb

package
v0.0.0-...-f01271b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT 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 MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AddComment

func (m *MockStore) AddComment(arg0 context.Context, arg1 db.AddCommentParams) (*db.Comment, error)

AddComment mocks base method.

func (*MockStore) CountArticles

func (m *MockStore) CountArticles(arg0 context.Context) (int64, error)

CountArticles mocks base method.

func (*MockStore) CountArticlesByAuthor

func (m *MockStore) CountArticlesByAuthor(arg0 context.Context, arg1 string) (int64, error)

CountArticlesByAuthor mocks base method.

func (*MockStore) CountArticlesByFavorited

func (m *MockStore) CountArticlesByFavorited(arg0 context.Context, arg1 string) (int64, error)

CountArticlesByFavorited mocks base method.

func (*MockStore) CountArticlesByTag

func (m *MockStore) CountArticlesByTag(arg0 context.Context, arg1 string) (int64, error)

CountArticlesByTag mocks base method.

func (*MockStore) CountArticlesFeed

func (m *MockStore) CountArticlesFeed(arg0 context.Context, arg1 string) (int64, error)

CountArticlesFeed mocks base method.

func (*MockStore) CreateArticle

func (m *MockStore) CreateArticle(arg0 context.Context, arg1 db.CreateArticleParams) (*db.Article, error)

CreateArticle mocks base method.

func (*MockStore) CreateArticleTag

func (m *MockStore) CreateArticleTag(arg0 context.Context, arg1 db.CreateArticleTagParams) (*db.ArticleTag, error)

CreateArticleTag mocks base method.

func (*MockStore) CreateArticleTx

func (m *MockStore) CreateArticleTx(arg0 context.Context, arg1 db.CreateArticleTxParams) (*db.CreateArticleTxResult, error)

CreateArticleTx mocks base method.

func (*MockStore) CreateTag

func (m *MockStore) CreateTag(arg0 context.Context, arg1 db.CreateTagParams) (string, error)

CreateTag mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (*db.User, error)

CreateUser mocks base method.

func (*MockStore) DeleteArticle

func (m *MockStore) DeleteArticle(arg0 context.Context, arg1 string) error

DeleteArticle mocks base method.

func (*MockStore) DeleteArticleTx

func (m *MockStore) DeleteArticleTx(arg0 context.Context, arg1 db.DeleteArticleTxParams) error

DeleteArticleTx mocks base method.

func (*MockStore) DeleteComment

func (m *MockStore) DeleteComment(arg0 context.Context, arg1 string) error

DeleteComment mocks base method.

func (*MockStore) DeleteCommentTx

func (m *MockStore) DeleteCommentTx(arg0 context.Context, arg1 db.DeleteCommentTxParams) error

DeleteCommentTx mocks base method.

func (*MockStore) DoesFavoriteExist

func (m *MockStore) DoesFavoriteExist(arg0 context.Context, arg1 db.DoesFavoriteExistParams) (bool, error)

DoesFavoriteExist mocks base method.

func (*MockStore) DoesUserExist

func (m *MockStore) DoesUserExist(arg0 context.Context, arg1 string) (bool, error)

DoesUserExist mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) FavoriteArticle

func (m *MockStore) FavoriteArticle(arg0 context.Context, arg1 db.FavoriteArticleParams) error

FavoriteArticle mocks base method.

func (*MockStore) FavoriteArticleTx

func (m *MockStore) FavoriteArticleTx(arg0 context.Context, arg1 db.FavoriteArticleTxParams) (*db.FavoriteArticleTxResult, error)

FavoriteArticleTx mocks base method.

func (*MockStore) FollowUser

func (m *MockStore) FollowUser(arg0 context.Context, arg1 db.FollowUserParams) error

FollowUser mocks base method.

func (*MockStore) GetArticleAuthorID

func (m *MockStore) GetArticleAuthorID(arg0 context.Context, arg1 string) (string, error)

GetArticleAuthorID mocks base method.

func (*MockStore) GetArticleAuthorIDBySlug

func (m *MockStore) GetArticleAuthorIDBySlug(arg0 context.Context, arg1 string) (*db.GetArticleAuthorIDBySlugRow, error)

GetArticleAuthorIDBySlug mocks base method.

func (*MockStore) GetArticleBySlug

func (m *MockStore) GetArticleBySlug(arg0 context.Context, arg1 string) (*db.GetArticleBySlugRow, error)

GetArticleBySlug mocks base method.

func (*MockStore) GetArticleIDBySlug

func (m *MockStore) GetArticleIDBySlug(arg0 context.Context, arg1 string) (string, error)

GetArticleIDBySlug mocks base method.

func (*MockStore) GetArticles

func (m *MockStore) GetArticles(arg0 context.Context, arg1 db.GetArticlesParams) ([]*db.GetArticlesRow, error)

GetArticles mocks base method.

func (*MockStore) GetArticlesByAuthor

func (m *MockStore) GetArticlesByAuthor(arg0 context.Context, arg1 db.GetArticlesByAuthorParams) ([]*db.GetArticlesByAuthorRow, error)

GetArticlesByAuthor mocks base method.

func (*MockStore) GetArticlesByFavorited

func (m *MockStore) GetArticlesByFavorited(arg0 context.Context, arg1 db.GetArticlesByFavoritedParams) ([]*db.GetArticlesByFavoritedRow, error)

GetArticlesByFavorited mocks base method.

func (*MockStore) GetArticlesByTag

func (m *MockStore) GetArticlesByTag(arg0 context.Context, arg1 db.GetArticlesByTagParams) ([]*db.GetArticlesByTagRow, error)

GetArticlesByTag mocks base method.

func (*MockStore) GetArticlesFeed

func (m *MockStore) GetArticlesFeed(arg0 context.Context, arg1 db.GetArticlesFeedParams) ([]*db.GetArticlesFeedRow, error)

GetArticlesFeed mocks base method.

func (*MockStore) GetCommentAuthorID

func (m *MockStore) GetCommentAuthorID(arg0 context.Context, arg1 string) (string, error)

GetCommentAuthorID mocks base method.

func (*MockStore) GetCommentsBySlug

func (m *MockStore) GetCommentsBySlug(arg0 context.Context, arg1 string) ([]*db.GetCommentsBySlugRow, error)

GetCommentsBySlug mocks base method.

func (*MockStore) GetFollowees

func (m *MockStore) GetFollowees(arg0 context.Context, arg1 string) ([]*db.Follow, error)

GetFollowees mocks base method.

func (*MockStore) GetTags

func (m *MockStore) GetTags(arg0 context.Context) ([]string, error)

GetTags mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (*db.User, error)

GetUser mocks base method.

func (*MockStore) GetUserByEmail

func (m *MockStore) GetUserByEmail(arg0 context.Context, arg1 string) (*db.User, error)

GetUserByEmail mocks base method.

func (*MockStore) GetUserByUsername

func (m *MockStore) GetUserByUsername(arg0 context.Context, arg1 string) (*db.User, error)

GetUserByUsername mocks base method.

func (*MockStore) IsFollowing

func (m *MockStore) IsFollowing(arg0 context.Context, arg1 db.IsFollowingParams) (bool, error)

IsFollowing mocks base method.

func (*MockStore) IsFollowingList

func (m *MockStore) IsFollowingList(arg0 context.Context, arg1 db.IsFollowingListParams) ([]bool, error)

IsFollowingList mocks base method.

func (*MockStore) UnfavoriteArticle

func (m *MockStore) UnfavoriteArticle(arg0 context.Context, arg1 db.UnfavoriteArticleParams) error

UnfavoriteArticle mocks base method.

func (*MockStore) UnfavoriteArticleTx

func (m *MockStore) UnfavoriteArticleTx(arg0 context.Context, arg1 db.UnfavoriteArticleTxParams) (*db.UnfavoriteArticleTxResult, error)

UnfavoriteArticleTx mocks base method.

func (*MockStore) UnfollowUser

func (m *MockStore) UnfollowUser(arg0 context.Context, arg1 db.UnfollowUserParams) error

UnfollowUser mocks base method.

func (*MockStore) UpdateArticle

func (m *MockStore) UpdateArticle(arg0 context.Context, arg1 db.UpdateArticleParams) (*db.Article, error)

UpdateArticle mocks base method.

func (*MockStore) UpdateArticleTx

func (m *MockStore) UpdateArticleTx(arg0 context.Context, arg1 db.UpdateArticleTxParams) (*db.UpdateArticleTxResult, error)

UpdateArticleTx mocks base method.

func (*MockStore) UpdateUser

func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (*db.User, error)

UpdateUser mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AddComment

func (mr *MockStoreMockRecorder) AddComment(arg0, arg1 interface{}) *gomock.Call

AddComment indicates an expected call of AddComment.

func (*MockStoreMockRecorder) CountArticles

func (mr *MockStoreMockRecorder) CountArticles(arg0 interface{}) *gomock.Call

CountArticles indicates an expected call of CountArticles.

func (*MockStoreMockRecorder) CountArticlesByAuthor

func (mr *MockStoreMockRecorder) CountArticlesByAuthor(arg0, arg1 interface{}) *gomock.Call

CountArticlesByAuthor indicates an expected call of CountArticlesByAuthor.

func (*MockStoreMockRecorder) CountArticlesByFavorited

func (mr *MockStoreMockRecorder) CountArticlesByFavorited(arg0, arg1 interface{}) *gomock.Call

CountArticlesByFavorited indicates an expected call of CountArticlesByFavorited.

func (*MockStoreMockRecorder) CountArticlesByTag

func (mr *MockStoreMockRecorder) CountArticlesByTag(arg0, arg1 interface{}) *gomock.Call

CountArticlesByTag indicates an expected call of CountArticlesByTag.

func (*MockStoreMockRecorder) CountArticlesFeed

func (mr *MockStoreMockRecorder) CountArticlesFeed(arg0, arg1 interface{}) *gomock.Call

CountArticlesFeed indicates an expected call of CountArticlesFeed.

func (*MockStoreMockRecorder) CreateArticle

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

CreateArticle indicates an expected call of CreateArticle.

func (*MockStoreMockRecorder) CreateArticleTag

func (mr *MockStoreMockRecorder) CreateArticleTag(arg0, arg1 interface{}) *gomock.Call

CreateArticleTag indicates an expected call of CreateArticleTag.

func (*MockStoreMockRecorder) CreateArticleTx

func (mr *MockStoreMockRecorder) CreateArticleTx(arg0, arg1 interface{}) *gomock.Call

CreateArticleTx indicates an expected call of CreateArticleTx.

func (*MockStoreMockRecorder) CreateTag

func (mr *MockStoreMockRecorder) CreateTag(arg0, arg1 interface{}) *gomock.Call

CreateTag indicates an expected call of CreateTag.

func (*MockStoreMockRecorder) CreateUser

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

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeleteArticle

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

DeleteArticle indicates an expected call of DeleteArticle.

func (*MockStoreMockRecorder) DeleteArticleTx

func (mr *MockStoreMockRecorder) DeleteArticleTx(arg0, arg1 interface{}) *gomock.Call

DeleteArticleTx indicates an expected call of DeleteArticleTx.

func (*MockStoreMockRecorder) DeleteComment

func (mr *MockStoreMockRecorder) DeleteComment(arg0, arg1 interface{}) *gomock.Call

DeleteComment indicates an expected call of DeleteComment.

func (*MockStoreMockRecorder) DeleteCommentTx

func (mr *MockStoreMockRecorder) DeleteCommentTx(arg0, arg1 interface{}) *gomock.Call

DeleteCommentTx indicates an expected call of DeleteCommentTx.

func (*MockStoreMockRecorder) DoesFavoriteExist

func (mr *MockStoreMockRecorder) DoesFavoriteExist(arg0, arg1 interface{}) *gomock.Call

DoesFavoriteExist indicates an expected call of DoesFavoriteExist.

func (*MockStoreMockRecorder) DoesUserExist

func (mr *MockStoreMockRecorder) DoesUserExist(arg0, arg1 interface{}) *gomock.Call

DoesUserExist indicates an expected call of DoesUserExist.

func (*MockStoreMockRecorder) FavoriteArticle

func (mr *MockStoreMockRecorder) FavoriteArticle(arg0, arg1 interface{}) *gomock.Call

FavoriteArticle indicates an expected call of FavoriteArticle.

func (*MockStoreMockRecorder) FavoriteArticleTx

func (mr *MockStoreMockRecorder) FavoriteArticleTx(arg0, arg1 interface{}) *gomock.Call

FavoriteArticleTx indicates an expected call of FavoriteArticleTx.

func (*MockStoreMockRecorder) FollowUser

func (mr *MockStoreMockRecorder) FollowUser(arg0, arg1 interface{}) *gomock.Call

FollowUser indicates an expected call of FollowUser.

func (*MockStoreMockRecorder) GetArticleAuthorID

func (mr *MockStoreMockRecorder) GetArticleAuthorID(arg0, arg1 interface{}) *gomock.Call

GetArticleAuthorID indicates an expected call of GetArticleAuthorID.

func (*MockStoreMockRecorder) GetArticleAuthorIDBySlug

func (mr *MockStoreMockRecorder) GetArticleAuthorIDBySlug(arg0, arg1 interface{}) *gomock.Call

GetArticleAuthorIDBySlug indicates an expected call of GetArticleAuthorIDBySlug.

func (*MockStoreMockRecorder) GetArticleBySlug

func (mr *MockStoreMockRecorder) GetArticleBySlug(arg0, arg1 interface{}) *gomock.Call

GetArticleBySlug indicates an expected call of GetArticleBySlug.

func (*MockStoreMockRecorder) GetArticleIDBySlug

func (mr *MockStoreMockRecorder) GetArticleIDBySlug(arg0, arg1 interface{}) *gomock.Call

GetArticleIDBySlug indicates an expected call of GetArticleIDBySlug.

func (*MockStoreMockRecorder) GetArticles

func (mr *MockStoreMockRecorder) GetArticles(arg0, arg1 interface{}) *gomock.Call

GetArticles indicates an expected call of GetArticles.

func (*MockStoreMockRecorder) GetArticlesByAuthor

func (mr *MockStoreMockRecorder) GetArticlesByAuthor(arg0, arg1 interface{}) *gomock.Call

GetArticlesByAuthor indicates an expected call of GetArticlesByAuthor.

func (*MockStoreMockRecorder) GetArticlesByFavorited

func (mr *MockStoreMockRecorder) GetArticlesByFavorited(arg0, arg1 interface{}) *gomock.Call

GetArticlesByFavorited indicates an expected call of GetArticlesByFavorited.

func (*MockStoreMockRecorder) GetArticlesByTag

func (mr *MockStoreMockRecorder) GetArticlesByTag(arg0, arg1 interface{}) *gomock.Call

GetArticlesByTag indicates an expected call of GetArticlesByTag.

func (*MockStoreMockRecorder) GetArticlesFeed

func (mr *MockStoreMockRecorder) GetArticlesFeed(arg0, arg1 interface{}) *gomock.Call

GetArticlesFeed indicates an expected call of GetArticlesFeed.

func (*MockStoreMockRecorder) GetCommentAuthorID

func (mr *MockStoreMockRecorder) GetCommentAuthorID(arg0, arg1 interface{}) *gomock.Call

GetCommentAuthorID indicates an expected call of GetCommentAuthorID.

func (*MockStoreMockRecorder) GetCommentsBySlug

func (mr *MockStoreMockRecorder) GetCommentsBySlug(arg0, arg1 interface{}) *gomock.Call

GetCommentsBySlug indicates an expected call of GetCommentsBySlug.

func (*MockStoreMockRecorder) GetFollowees

func (mr *MockStoreMockRecorder) GetFollowees(arg0, arg1 interface{}) *gomock.Call

GetFollowees indicates an expected call of GetFollowees.

func (*MockStoreMockRecorder) GetTags

func (mr *MockStoreMockRecorder) GetTags(arg0 interface{}) *gomock.Call

GetTags indicates an expected call of GetTags.

func (*MockStoreMockRecorder) GetUser

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

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) GetUserByEmail

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

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockStoreMockRecorder) GetUserByUsername

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

GetUserByUsername indicates an expected call of GetUserByUsername.

func (*MockStoreMockRecorder) IsFollowing

func (mr *MockStoreMockRecorder) IsFollowing(arg0, arg1 interface{}) *gomock.Call

IsFollowing indicates an expected call of IsFollowing.

func (*MockStoreMockRecorder) IsFollowingList

func (mr *MockStoreMockRecorder) IsFollowingList(arg0, arg1 interface{}) *gomock.Call

IsFollowingList indicates an expected call of IsFollowingList.

func (*MockStoreMockRecorder) UnfavoriteArticle

func (mr *MockStoreMockRecorder) UnfavoriteArticle(arg0, arg1 interface{}) *gomock.Call

UnfavoriteArticle indicates an expected call of UnfavoriteArticle.

func (*MockStoreMockRecorder) UnfavoriteArticleTx

func (mr *MockStoreMockRecorder) UnfavoriteArticleTx(arg0, arg1 interface{}) *gomock.Call

UnfavoriteArticleTx indicates an expected call of UnfavoriteArticleTx.

func (*MockStoreMockRecorder) UnfollowUser

func (mr *MockStoreMockRecorder) UnfollowUser(arg0, arg1 interface{}) *gomock.Call

UnfollowUser indicates an expected call of UnfollowUser.

func (*MockStoreMockRecorder) UpdateArticle

func (mr *MockStoreMockRecorder) UpdateArticle(arg0, arg1 interface{}) *gomock.Call

UpdateArticle indicates an expected call of UpdateArticle.

func (*MockStoreMockRecorder) UpdateArticleTx

func (mr *MockStoreMockRecorder) UpdateArticleTx(arg0, arg1 interface{}) *gomock.Call

UpdateArticleTx indicates an expected call of UpdateArticleTx.

func (*MockStoreMockRecorder) UpdateUser

func (mr *MockStoreMockRecorder) 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