Documentation ¶
Overview ¶
Package mockdb is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) CreateBlog(arg0 context.Context, arg1 db.CreateBlogParams) (db.Blog, error)
- func (m *MockStore) CreateComment(arg0 context.Context, arg1 db.CreateCommentParams) (db.Comment, error)
- func (m *MockStore) CreateFavorite(arg0 context.Context, arg1 db.CreateFavoriteParams) (db.Favorite, error)
- func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
- func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error)
- func (m *MockStore) CreateUserTx(arg0 context.Context, arg1 db.CreateUserTxParams) (db.CreateUserTxResult, error)
- func (m *MockStore) CreateVerifyEmail(arg0 context.Context, arg1 db.CreateVerifyEmailParams) (db.VerifyEmail, error)
- func (m *MockStore) DeleteBlog(arg0 context.Context, arg1 uuid.UUID) error
- func (m *MockStore) DeleteBlogTx(arg0 context.Context, arg1 db.DeleteBlogTxParams) (db.DeleteBlogTxResult, error)
- func (m *MockStore) DeleteComment(arg0 context.Context, arg1 uuid.UUID) error
- func (m *MockStore) DeleteCommentByBlogID(arg0 context.Context, arg1 db.DeleteCommentByBlogIDParams) error
- func (m *MockStore) DeleteCommentsByBlog(arg0 context.Context, arg1 uuid.UUID) (pgconn.CommandTag, error)
- func (m *MockStore) DeleteFavorite(arg0 context.Context, arg1 uuid.UUID) error
- func (m *MockStore) DeleteFavoritesByBlog(arg0 context.Context, arg1 uuid.UUID) (pgconn.CommandTag, error)
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetBlog(arg0 context.Context, arg1 uuid.UUID) (db.Blog, error)
- func (m *MockStore) GetBlogBySlug(arg0 context.Context, arg1 string) (db.Blog, error)
- func (m *MockStore) GetComment(arg0 context.Context, arg1 uuid.UUID) (db.Comment, error)
- func (m *MockStore) GetFavorite(arg0 context.Context, arg1 uuid.UUID) (db.Favorite, error)
- func (m *MockStore) GetSession(arg0 context.Context, arg1 uuid.UUID) (db.Session, error)
- func (m *MockStore) GetUser(arg0 context.Context, arg1 uuid.UUID) (db.User, error)
- func (m *MockStore) GetUserByUsername(arg0 context.Context, arg1 string) (db.User, error)
- func (m *MockStore) ListBlogs(arg0 context.Context, arg1 db.ListBlogsParams) ([]db.Blog, error)
- func (m *MockStore) ListCommentsByBlog(arg0 context.Context, arg1 db.ListCommentsByBlogParams) ([]db.Comment, error)
- func (m *MockStore) ListFavoritesByBlog(arg0 context.Context, arg1 db.ListFavoritesByBlogParams) ([]db.Favorite, error)
- func (m *MockStore) UpdateBlog(arg0 context.Context, arg1 db.UpdateBlogParams) (db.Blog, error)
- func (m *MockStore) UpdateComment(arg0 context.Context, arg1 db.UpdateCommentParams) (db.Comment, error)
- func (m *MockStore) UpdateCommentByBlogID(arg0 context.Context, arg1 db.UpdateCommentByBlogIDParams) (db.Comment, error)
- func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (db.User, error)
- func (m *MockStore) UpdateVerifyEmail(arg0 context.Context, arg1 db.UpdateVerifyEmailParams) (db.VerifyEmail, error)
- func (m *MockStore) VerifyEmailTx(arg0 context.Context, arg1 db.VerifyEmailTxParams) (db.VerifyEmailTxResult, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) CreateBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateComment(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateFavorite(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUserTx(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateVerifyEmail(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteBlogTx(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteComment(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteCommentByBlogID(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteCommentsByBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteFavorite(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteFavoritesByBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetBlogBySlug(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetComment(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetFavorite(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUserByUsername(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListBlogs(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListCommentsByBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListFavoritesByBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateBlog(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateComment(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateCommentByBlogID(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateVerifyEmail(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) VerifyEmailTx(arg0, arg1 any) *gomock.Call
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) CreateBlog ¶
CreateBlog mocks base method.
func (*MockStore) CreateComment ¶
func (m *MockStore) CreateComment(arg0 context.Context, arg1 db.CreateCommentParams) (db.Comment, error)
CreateComment mocks base method.
func (*MockStore) CreateFavorite ¶
func (m *MockStore) CreateFavorite(arg0 context.Context, arg1 db.CreateFavoriteParams) (db.Favorite, error)
CreateFavorite mocks base method.
func (*MockStore) CreateSession ¶
func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
CreateSession mocks base method.
func (*MockStore) CreateUser ¶
CreateUser mocks base method.
func (*MockStore) CreateUserTx ¶
func (m *MockStore) CreateUserTx(arg0 context.Context, arg1 db.CreateUserTxParams) (db.CreateUserTxResult, error)
CreateUserTx mocks base method.
func (*MockStore) CreateVerifyEmail ¶
func (m *MockStore) CreateVerifyEmail(arg0 context.Context, arg1 db.CreateVerifyEmailParams) (db.VerifyEmail, error)
CreateVerifyEmail mocks base method.
func (*MockStore) DeleteBlog ¶
DeleteBlog mocks base method.
func (*MockStore) DeleteBlogTx ¶
func (m *MockStore) DeleteBlogTx(arg0 context.Context, arg1 db.DeleteBlogTxParams) (db.DeleteBlogTxResult, error)
DeleteBlogTx mocks base method.
func (*MockStore) DeleteComment ¶
DeleteComment mocks base method.
func (*MockStore) DeleteCommentByBlogID ¶
func (m *MockStore) DeleteCommentByBlogID(arg0 context.Context, arg1 db.DeleteCommentByBlogIDParams) error
DeleteCommentByBlogID mocks base method.
func (*MockStore) DeleteCommentsByBlog ¶
func (m *MockStore) DeleteCommentsByBlog(arg0 context.Context, arg1 uuid.UUID) (pgconn.CommandTag, error)
DeleteCommentsByBlog mocks base method.
func (*MockStore) DeleteFavorite ¶
DeleteFavorite mocks base method.
func (*MockStore) DeleteFavoritesByBlog ¶
func (m *MockStore) DeleteFavoritesByBlog(arg0 context.Context, arg1 uuid.UUID) (pgconn.CommandTag, error)
DeleteFavoritesByBlog 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) GetBlogBySlug ¶
GetBlogBySlug mocks base method.
func (*MockStore) GetComment ¶
GetComment mocks base method.
func (*MockStore) GetFavorite ¶
GetFavorite mocks base method.
func (*MockStore) GetSession ¶
GetSession mocks base method.
func (*MockStore) GetUserByUsername ¶
GetUserByUsername mocks base method.
func (*MockStore) ListCommentsByBlog ¶
func (m *MockStore) ListCommentsByBlog(arg0 context.Context, arg1 db.ListCommentsByBlogParams) ([]db.Comment, error)
ListCommentsByBlog mocks base method.
func (*MockStore) ListFavoritesByBlog ¶
func (m *MockStore) ListFavoritesByBlog(arg0 context.Context, arg1 db.ListFavoritesByBlogParams) ([]db.Favorite, error)
ListFavoritesByBlog mocks base method.
func (*MockStore) UpdateBlog ¶
UpdateBlog mocks base method.
func (*MockStore) UpdateComment ¶
func (m *MockStore) UpdateComment(arg0 context.Context, arg1 db.UpdateCommentParams) (db.Comment, error)
UpdateComment mocks base method.
func (*MockStore) UpdateCommentByBlogID ¶
func (m *MockStore) UpdateCommentByBlogID(arg0 context.Context, arg1 db.UpdateCommentByBlogIDParams) (db.Comment, error)
UpdateCommentByBlogID mocks base method.
func (*MockStore) UpdateUser ¶
UpdateUser mocks base method.
func (*MockStore) UpdateVerifyEmail ¶
func (m *MockStore) UpdateVerifyEmail(arg0 context.Context, arg1 db.UpdateVerifyEmailParams) (db.VerifyEmail, error)
UpdateVerifyEmail mocks base method.
func (*MockStore) VerifyEmailTx ¶
func (m *MockStore) VerifyEmailTx(arg0 context.Context, arg1 db.VerifyEmailTxParams) (db.VerifyEmailTxResult, error)
VerifyEmailTx mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) CreateBlog ¶
func (mr *MockStoreMockRecorder) CreateBlog(arg0, arg1 any) *gomock.Call
CreateBlog indicates an expected call of CreateBlog.
func (*MockStoreMockRecorder) CreateComment ¶
func (mr *MockStoreMockRecorder) CreateComment(arg0, arg1 any) *gomock.Call
CreateComment indicates an expected call of CreateComment.
func (*MockStoreMockRecorder) CreateFavorite ¶
func (mr *MockStoreMockRecorder) CreateFavorite(arg0, arg1 any) *gomock.Call
CreateFavorite indicates an expected call of CreateFavorite.
func (*MockStoreMockRecorder) CreateSession ¶
func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockStoreMockRecorder) CreateUser ¶
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockStoreMockRecorder) CreateUserTx ¶
func (mr *MockStoreMockRecorder) CreateUserTx(arg0, arg1 any) *gomock.Call
CreateUserTx indicates an expected call of CreateUserTx.
func (*MockStoreMockRecorder) CreateVerifyEmail ¶
func (mr *MockStoreMockRecorder) CreateVerifyEmail(arg0, arg1 any) *gomock.Call
CreateVerifyEmail indicates an expected call of CreateVerifyEmail.
func (*MockStoreMockRecorder) DeleteBlog ¶
func (mr *MockStoreMockRecorder) DeleteBlog(arg0, arg1 any) *gomock.Call
DeleteBlog indicates an expected call of DeleteBlog.
func (*MockStoreMockRecorder) DeleteBlogTx ¶
func (mr *MockStoreMockRecorder) DeleteBlogTx(arg0, arg1 any) *gomock.Call
DeleteBlogTx indicates an expected call of DeleteBlogTx.
func (*MockStoreMockRecorder) DeleteComment ¶
func (mr *MockStoreMockRecorder) DeleteComment(arg0, arg1 any) *gomock.Call
DeleteComment indicates an expected call of DeleteComment.
func (*MockStoreMockRecorder) DeleteCommentByBlogID ¶
func (mr *MockStoreMockRecorder) DeleteCommentByBlogID(arg0, arg1 any) *gomock.Call
DeleteCommentByBlogID indicates an expected call of DeleteCommentByBlogID.
func (*MockStoreMockRecorder) DeleteCommentsByBlog ¶
func (mr *MockStoreMockRecorder) DeleteCommentsByBlog(arg0, arg1 any) *gomock.Call
DeleteCommentsByBlog indicates an expected call of DeleteCommentsByBlog.
func (*MockStoreMockRecorder) DeleteFavorite ¶
func (mr *MockStoreMockRecorder) DeleteFavorite(arg0, arg1 any) *gomock.Call
DeleteFavorite indicates an expected call of DeleteFavorite.
func (*MockStoreMockRecorder) DeleteFavoritesByBlog ¶
func (mr *MockStoreMockRecorder) DeleteFavoritesByBlog(arg0, arg1 any) *gomock.Call
DeleteFavoritesByBlog indicates an expected call of DeleteFavoritesByBlog.
func (*MockStoreMockRecorder) GetBlog ¶
func (mr *MockStoreMockRecorder) GetBlog(arg0, arg1 any) *gomock.Call
GetBlog indicates an expected call of GetBlog.
func (*MockStoreMockRecorder) GetBlogBySlug ¶
func (mr *MockStoreMockRecorder) GetBlogBySlug(arg0, arg1 any) *gomock.Call
GetBlogBySlug indicates an expected call of GetBlogBySlug.
func (*MockStoreMockRecorder) GetComment ¶
func (mr *MockStoreMockRecorder) GetComment(arg0, arg1 any) *gomock.Call
GetComment indicates an expected call of GetComment.
func (*MockStoreMockRecorder) GetFavorite ¶
func (mr *MockStoreMockRecorder) GetFavorite(arg0, arg1 any) *gomock.Call
GetFavorite indicates an expected call of GetFavorite.
func (*MockStoreMockRecorder) GetSession ¶
func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockStoreMockRecorder) GetUser ¶
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStoreMockRecorder) GetUserByUsername ¶
func (mr *MockStoreMockRecorder) GetUserByUsername(arg0, arg1 any) *gomock.Call
GetUserByUsername indicates an expected call of GetUserByUsername.
func (*MockStoreMockRecorder) ListBlogs ¶
func (mr *MockStoreMockRecorder) ListBlogs(arg0, arg1 any) *gomock.Call
ListBlogs indicates an expected call of ListBlogs.
func (*MockStoreMockRecorder) ListCommentsByBlog ¶
func (mr *MockStoreMockRecorder) ListCommentsByBlog(arg0, arg1 any) *gomock.Call
ListCommentsByBlog indicates an expected call of ListCommentsByBlog.
func (*MockStoreMockRecorder) ListFavoritesByBlog ¶
func (mr *MockStoreMockRecorder) ListFavoritesByBlog(arg0, arg1 any) *gomock.Call
ListFavoritesByBlog indicates an expected call of ListFavoritesByBlog.
func (*MockStoreMockRecorder) UpdateBlog ¶
func (mr *MockStoreMockRecorder) UpdateBlog(arg0, arg1 any) *gomock.Call
UpdateBlog indicates an expected call of UpdateBlog.
func (*MockStoreMockRecorder) UpdateComment ¶
func (mr *MockStoreMockRecorder) UpdateComment(arg0, arg1 any) *gomock.Call
UpdateComment indicates an expected call of UpdateComment.
func (*MockStoreMockRecorder) UpdateCommentByBlogID ¶
func (mr *MockStoreMockRecorder) UpdateCommentByBlogID(arg0, arg1 any) *gomock.Call
UpdateCommentByBlogID indicates an expected call of UpdateCommentByBlogID.
func (*MockStoreMockRecorder) UpdateUser ¶
func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 any) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
func (*MockStoreMockRecorder) UpdateVerifyEmail ¶
func (mr *MockStoreMockRecorder) UpdateVerifyEmail(arg0, arg1 any) *gomock.Call
UpdateVerifyEmail indicates an expected call of UpdateVerifyEmail.
func (*MockStoreMockRecorder) VerifyEmailTx ¶
func (mr *MockStoreMockRecorder) VerifyEmailTx(arg0, arg1 any) *gomock.Call
VerifyEmailTx indicates an expected call of VerifyEmailTx.