Documentation ¶
Overview ¶
Package mockdb is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) Close() error
- func (m *MockStore) CreateArticle(arg0 context.Context, arg1 db.CreateArticleParams) (db.Article, error)
- func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error)
- func (m *MockStore) DeleteArticle(arg0 context.Context, arg1 int64) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetArticle(arg0 context.Context, arg1 int64) (db.Article, error)
- func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (db.User, error)
- func (m *MockStore) ListArticles(arg0 context.Context, arg1 db.ListArticlesParams) ([]db.Article, error)
- func (m *MockStore) UpdateArticle(arg0 context.Context, arg1 db.UpdateArticleParams) (db.Article, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) Close() *gomock.Call
- func (mr *MockStoreMockRecorder) CreateArticle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteArticle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetArticle(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) ListArticles(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateArticle(arg0, arg1 interface{}) *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) CreateArticle ¶
func (m *MockStore) CreateArticle(arg0 context.Context, arg1 db.CreateArticleParams) (db.Article, error)
CreateArticle mocks base method.
func (*MockStore) CreateUser ¶
CreateUser mocks base method.
func (*MockStore) DeleteArticle ¶
DeleteArticle 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) GetArticle ¶
GetArticle mocks base method.
func (*MockStore) ListArticles ¶
func (m *MockStore) ListArticles(arg0 context.Context, arg1 db.ListArticlesParams) ([]db.Article, error)
ListArticles mocks base method.
func (*MockStore) UpdateArticle ¶
func (m *MockStore) UpdateArticle(arg0 context.Context, arg1 db.UpdateArticleParams) (db.Article, error)
UpdateArticle mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) Close ¶
func (mr *MockStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStoreMockRecorder) CreateArticle ¶
func (mr *MockStoreMockRecorder) CreateArticle(arg0, arg1 interface{}) *gomock.Call
CreateArticle indicates an expected call of CreateArticle.
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) GetArticle ¶
func (mr *MockStoreMockRecorder) GetArticle(arg0, arg1 interface{}) *gomock.Call
GetArticle indicates an expected call of GetArticle.
func (*MockStoreMockRecorder) GetUser ¶
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStoreMockRecorder) ListArticles ¶
func (mr *MockStoreMockRecorder) ListArticles(arg0, arg1 interface{}) *gomock.Call
ListArticles indicates an expected call of ListArticles.
func (*MockStoreMockRecorder) UpdateArticle ¶
func (mr *MockStoreMockRecorder) UpdateArticle(arg0, arg1 interface{}) *gomock.Call
UpdateArticle indicates an expected call of UpdateArticle.