Documentation
¶
Overview ¶
Package mock_db is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) AddPostLikesCount(arg0 context.Context, arg1 db.AddPostLikesCountParams) error
- func (m *MockStore) AddUserLikesCount(arg0 context.Context, arg1 db.AddUserLikesCountParams) error
- func (m *MockStore) CreatePost(arg0 context.Context, arg1 db.CreatePostParams) (sql.Result, error)
- func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (sql.Result, error)
- func (m *MockStore) DeletePost(arg0 context.Context, arg1 int64) error
- func (m *MockStore) DeleteUser(arg0 context.Context, arg1 int64) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetPost(arg0 context.Context, arg1 int64) (db.Post, error)
- func (m *MockStore) GetUser(arg0 context.Context, arg1 int64) (db.User, error)
- func (m *MockStore) GetUserPosts(arg0 context.Context, arg1 int64) ([]db.Post, error)
- func (m *MockStore) LikeTx(arg0 context.Context, arg1 db.LikeTxParams) error
- func (m *MockStore) ListUsers(arg0 context.Context) ([]db.User, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AddPostLikesCount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) AddUserLikesCount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreatePost(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeletePost(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetPost(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUserPosts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) LikeTx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) ListUsers(arg0 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) AddPostLikesCount ¶
AddPostLikesCount mocks base method.
func (*MockStore) AddUserLikesCount ¶
AddUserLikesCount mocks base method.
func (*MockStore) CreatePost ¶
CreatePost mocks base method.
func (*MockStore) CreateUser ¶
CreateUser mocks base method.
func (*MockStore) DeletePost ¶
DeletePost mocks base method.
func (*MockStore) DeleteUser ¶
DeleteUser 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) GetUserPosts ¶
GetUserPosts mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) AddPostLikesCount ¶
func (mr *MockStoreMockRecorder) AddPostLikesCount(arg0, arg1 interface{}) *gomock.Call
AddPostLikesCount indicates an expected call of AddPostLikesCount.
func (*MockStoreMockRecorder) AddUserLikesCount ¶
func (mr *MockStoreMockRecorder) AddUserLikesCount(arg0, arg1 interface{}) *gomock.Call
AddUserLikesCount indicates an expected call of AddUserLikesCount.
func (*MockStoreMockRecorder) CreatePost ¶
func (mr *MockStoreMockRecorder) CreatePost(arg0, arg1 interface{}) *gomock.Call
CreatePost indicates an expected call of CreatePost.
func (*MockStoreMockRecorder) CreateUser ¶
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockStoreMockRecorder) DeletePost ¶
func (mr *MockStoreMockRecorder) DeletePost(arg0, arg1 interface{}) *gomock.Call
DeletePost indicates an expected call of DeletePost.
func (*MockStoreMockRecorder) DeleteUser ¶
func (mr *MockStoreMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockStoreMockRecorder) GetPost ¶
func (mr *MockStoreMockRecorder) GetPost(arg0, arg1 interface{}) *gomock.Call
GetPost indicates an expected call of GetPost.
func (*MockStoreMockRecorder) GetUser ¶
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStoreMockRecorder) GetUserPosts ¶
func (mr *MockStoreMockRecorder) GetUserPosts(arg0, arg1 interface{}) *gomock.Call
GetUserPosts indicates an expected call of GetUserPosts.
func (*MockStoreMockRecorder) LikeTx ¶
func (mr *MockStoreMockRecorder) LikeTx(arg0, arg1 interface{}) *gomock.Call
LikeTx indicates an expected call of LikeTx.
func (*MockStoreMockRecorder) ListUsers ¶
func (mr *MockStoreMockRecorder) ListUsers(arg0 interface{}) *gomock.Call
ListUsers indicates an expected call of ListUsers.