Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockPostInteractor
- func (m *MockPostInteractor) CreatePost(ctx context.Context, title, content string, authorID int64) (*service.Post, error)
- func (m *MockPostInteractor) DeletePost(ctx context.Context, id int64) error
- func (m *MockPostInteractor) EXPECT() *MockPostInteractorMockRecorder
- func (m *MockPostInteractor) GetPost(ctx context.Context, id int64) (*service.Post, error)
- func (m *MockPostInteractor) GetPosts(ctx context.Context) ([]*service.Post, error)
- func (m *MockPostInteractor) UpdatePost(ctx context.Context, id int64, title, content string) (*service.Post, error)
- type MockPostInteractorMockRecorder
- func (mr *MockPostInteractorMockRecorder) CreatePost(ctx, title, content, authorID interface{}) *gomock.Call
- func (mr *MockPostInteractorMockRecorder) DeletePost(ctx, id interface{}) *gomock.Call
- func (mr *MockPostInteractorMockRecorder) GetPost(ctx, id interface{}) *gomock.Call
- func (mr *MockPostInteractorMockRecorder) GetPosts(ctx interface{}) *gomock.Call
- func (mr *MockPostInteractorMockRecorder) UpdatePost(ctx, id, title, content interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostInteractor ¶
type MockPostInteractor struct {
// contains filtered or unexported fields
}
MockPostInteractor is a mock of PostInteractor interface.
func NewMockPostInteractor ¶
func NewMockPostInteractor(ctrl *gomock.Controller) *MockPostInteractor
NewMockPostInteractor creates a new mock instance.
func (*MockPostInteractor) CreatePost ¶
func (m *MockPostInteractor) CreatePost(ctx context.Context, title, content string, authorID int64) (*service.Post, error)
CreatePost mocks base method.
func (*MockPostInteractor) DeletePost ¶
func (m *MockPostInteractor) DeletePost(ctx context.Context, id int64) error
DeletePost mocks base method.
func (*MockPostInteractor) EXPECT ¶
func (m *MockPostInteractor) EXPECT() *MockPostInteractorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostInteractor) UpdatePost ¶
func (m *MockPostInteractor) UpdatePost(ctx context.Context, id int64, title, content string) (*service.Post, error)
UpdatePost mocks base method.
type MockPostInteractorMockRecorder ¶
type MockPostInteractorMockRecorder struct {
// contains filtered or unexported fields
}
MockPostInteractorMockRecorder is the mock recorder for MockPostInteractor.
func (*MockPostInteractorMockRecorder) CreatePost ¶
func (mr *MockPostInteractorMockRecorder) CreatePost(ctx, title, content, authorID interface{}) *gomock.Call
CreatePost indicates an expected call of CreatePost.
func (*MockPostInteractorMockRecorder) DeletePost ¶
func (mr *MockPostInteractorMockRecorder) DeletePost(ctx, id interface{}) *gomock.Call
DeletePost indicates an expected call of DeletePost.
func (*MockPostInteractorMockRecorder) GetPost ¶
func (mr *MockPostInteractorMockRecorder) GetPost(ctx, id interface{}) *gomock.Call
GetPost indicates an expected call of GetPost.
func (*MockPostInteractorMockRecorder) GetPosts ¶
func (mr *MockPostInteractorMockRecorder) GetPosts(ctx interface{}) *gomock.Call
GetPosts indicates an expected call of GetPosts.
func (*MockPostInteractorMockRecorder) UpdatePost ¶
func (mr *MockPostInteractorMockRecorder) UpdatePost(ctx, id, title, content interface{}) *gomock.Call
UpdatePost indicates an expected call of UpdatePost.