Documentation ¶
Overview ¶
Package mock_postgres is a generated GoMock package.
Index ¶
- type MockPost
- func (m *MockPost) Create(ctx context.Context, post domain.Post) error
- func (m *MockPost) Delete(ctx context.Context, id, authorId ksuid.KSUID) error
- func (m *MockPost) EXPECT() *MockPostMockRecorder
- func (m *MockPost) Get(ctx context.Context, id ksuid.KSUID) (domain.Post, error)
- func (m *MockPost) GetPosts(ctx context.Context, authorId ksuid.KSUID, sort domain.SortOptions) ([]domain.Post, error)
- func (m *MockPost) GetTotalCount(ctx context.Context, authorId ksuid.KSUID) (int32, error)
- func (m *MockPost) Update(ctx context.Context, post domain.Post) error
- type MockPostMockRecorder
- func (mr *MockPostMockRecorder) Create(ctx, post interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Delete(ctx, id, authorId interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) GetPosts(ctx, authorId, sort interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) GetTotalCount(ctx, authorId interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Update(ctx, post interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPost ¶
type MockPost struct {
// contains filtered or unexported fields
}
MockPost is a mock of Post interface.
func NewMockPost ¶
func NewMockPost(ctrl *gomock.Controller) *MockPost
NewMockPost creates a new mock instance.
func (*MockPost) EXPECT ¶
func (m *MockPost) EXPECT() *MockPostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPost) GetPosts ¶
func (m *MockPost) GetPosts(ctx context.Context, authorId ksuid.KSUID, sort domain.SortOptions) ([]domain.Post, error)
GetPosts mocks base method.
func (*MockPost) GetTotalCount ¶
GetTotalCount mocks base method.
type MockPostMockRecorder ¶
type MockPostMockRecorder struct {
// contains filtered or unexported fields
}
MockPostMockRecorder is the mock recorder for MockPost.
func (*MockPostMockRecorder) Create ¶
func (mr *MockPostMockRecorder) Create(ctx, post interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPostMockRecorder) Delete ¶
func (mr *MockPostMockRecorder) Delete(ctx, id, authorId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPostMockRecorder) Get ¶
func (mr *MockPostMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPostMockRecorder) GetPosts ¶
func (mr *MockPostMockRecorder) GetPosts(ctx, authorId, sort interface{}) *gomock.Call
GetPosts indicates an expected call of GetPosts.
func (*MockPostMockRecorder) GetTotalCount ¶
func (mr *MockPostMockRecorder) GetTotalCount(ctx, authorId interface{}) *gomock.Call
GetTotalCount indicates an expected call of GetTotalCount.
func (*MockPostMockRecorder) Update ¶
func (mr *MockPostMockRecorder) Update(ctx, post interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.