Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAuthorRepository
- type MockAuthorRepositoryMockRecorder
- type MockPostRepository
- func (m *MockPostRepository) CreatePost(ctx context.Context, post *model.Post) (*model.Post, error)
- func (m *MockPostRepository) DeletePost(ctx context.Context, id int64) error
- func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
- func (m *MockPostRepository) FetchPost(ctx context.Context, id int64) (*model.Post, error)
- func (m *MockPostRepository) FetchPosts(ctx context.Context) ([]*model.Post, error)
- func (m *MockPostRepository) UpdatePost(ctx context.Context, post *model.Post) error
- type MockPostRepositoryMockRecorder
- func (mr *MockPostRepositoryMockRecorder) CreatePost(ctx, post interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) DeletePost(ctx, id interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FetchPost(ctx, id interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FetchPosts(ctx interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) UpdatePost(ctx, post interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorRepository ¶
type MockAuthorRepository struct {
// contains filtered or unexported fields
}
MockAuthorRepository is a mock of AuthorRepository interface.
func NewMockAuthorRepository ¶
func NewMockAuthorRepository(ctrl *gomock.Controller) *MockAuthorRepository
NewMockAuthorRepository creates a new mock instance.
func (*MockAuthorRepository) EXPECT ¶
func (m *MockAuthorRepository) EXPECT() *MockAuthorRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorRepository) FetchAuthorByID ¶
func (m *MockAuthorRepository) FetchAuthorByID(ctx context.Context, id int64) (*model.Author, error)
FetchAuthorByID mocks base method.
type MockAuthorRepositoryMockRecorder ¶
type MockAuthorRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorRepositoryMockRecorder is the mock recorder for MockAuthorRepository.
func (*MockAuthorRepositoryMockRecorder) FetchAuthorByID ¶
func (mr *MockAuthorRepositoryMockRecorder) FetchAuthorByID(ctx, id interface{}) *gomock.Call
FetchAuthorByID indicates an expected call of FetchAuthorByID.
type MockPostRepository ¶
type MockPostRepository struct {
// contains filtered or unexported fields
}
MockPostRepository is a mock of PostRepository interface.
func NewMockPostRepository ¶
func NewMockPostRepository(ctrl *gomock.Controller) *MockPostRepository
NewMockPostRepository creates a new mock instance.
func (*MockPostRepository) CreatePost ¶
CreatePost mocks base method.
func (*MockPostRepository) DeletePost ¶
func (m *MockPostRepository) DeletePost(ctx context.Context, id int64) error
DeletePost mocks base method.
func (*MockPostRepository) EXPECT ¶
func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostRepository) FetchPosts ¶
FetchPosts mocks base method.
func (*MockPostRepository) UpdatePost ¶
UpdatePost mocks base method.
type MockPostRepositoryMockRecorder ¶
type MockPostRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.
func (*MockPostRepositoryMockRecorder) CreatePost ¶
func (mr *MockPostRepositoryMockRecorder) CreatePost(ctx, post interface{}) *gomock.Call
CreatePost indicates an expected call of CreatePost.
func (*MockPostRepositoryMockRecorder) DeletePost ¶
func (mr *MockPostRepositoryMockRecorder) DeletePost(ctx, id interface{}) *gomock.Call
DeletePost indicates an expected call of DeletePost.
func (*MockPostRepositoryMockRecorder) FetchPost ¶
func (mr *MockPostRepositoryMockRecorder) FetchPost(ctx, id interface{}) *gomock.Call
FetchPost indicates an expected call of FetchPost.
func (*MockPostRepositoryMockRecorder) FetchPosts ¶
func (mr *MockPostRepositoryMockRecorder) FetchPosts(ctx interface{}) *gomock.Call
FetchPosts indicates an expected call of FetchPosts.
func (*MockPostRepositoryMockRecorder) UpdatePost ¶
func (mr *MockPostRepositoryMockRecorder) UpdatePost(ctx, post interface{}) *gomock.Call
UpdatePost indicates an expected call of UpdatePost.