Documentation ¶
Overview ¶
Package mock_blog is a generated GoMock package.
Package mock_blog is a generated GoMock package.
Package mock_blog is a generated GoMock package.
Index ¶
- type MockCategoryRepository
- func (m *MockCategoryRepository) EXPECT() *MockCategoryRepositoryMockRecorder
- func (m *MockCategoryRepository) FindAll(arg0 context.Context) ([]blog.Category, error)
- func (m *MockCategoryRepository) FindAllByIDs(arg0 context.Context, arg1 interface{}) ([]blog.Category, error)
- func (m *MockCategoryRepository) FindByID(arg0 context.Context, arg1 interface{}) (blog.Category, error)
- type MockCategoryRepositoryMockRecorder
- type MockPostRepository
- func (m *MockPostRepository) Create(arg0 context.Context, arg1 string) (blog.Post, error)
- func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
- func (m *MockPostRepository) FindAll(arg0 context.Context, arg1 blog.PostQuery) ([]blog.Post, error)
- func (m *MockPostRepository) FindByID(arg0 context.Context, arg1 interface{}) (blog.Post, error)
- func (m *MockPostRepository) Save(arg0 context.Context, arg1 interface{}, arg2 blog.PostQuery) (blog.Post, error)
- type MockPostRepositoryMockRecorder
- func (mr *MockPostRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FindAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) Save(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockTagRepository
- func (m *MockTagRepository) EXPECT() *MockTagRepositoryMockRecorder
- func (m *MockTagRepository) FindAll(arg0 context.Context) ([]blog.Tag, error)
- func (m *MockTagRepository) FindAllByIDs(arg0 context.Context, arg1 interface{}) ([]blog.Tag, error)
- func (m *MockTagRepository) FindByID(arg0 context.Context, arg1 interface{}) (blog.Tag, error)
- type MockTagRepositoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCategoryRepository ¶
type MockCategoryRepository struct {
// contains filtered or unexported fields
}
MockCategoryRepository is a mock of CategoryRepository interface
func NewMockCategoryRepository ¶
func NewMockCategoryRepository(ctrl *gomock.Controller) *MockCategoryRepository
NewMockCategoryRepository creates a new mock instance
func (*MockCategoryRepository) EXPECT ¶
func (m *MockCategoryRepository) EXPECT() *MockCategoryRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCategoryRepository) FindAllByIDs ¶
func (m *MockCategoryRepository) FindAllByIDs(arg0 context.Context, arg1 interface{}) ([]blog.Category, error)
FindAllByIDs mocks base method
type MockCategoryRepositoryMockRecorder ¶
type MockCategoryRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCategoryRepositoryMockRecorder is the mock recorder for MockCategoryRepository
func (*MockCategoryRepositoryMockRecorder) FindAll ¶
func (mr *MockCategoryRepositoryMockRecorder) FindAll(arg0 interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockCategoryRepositoryMockRecorder) FindAllByIDs ¶
func (mr *MockCategoryRepositoryMockRecorder) FindAllByIDs(arg0, arg1 interface{}) *gomock.Call
FindAllByIDs indicates an expected call of FindAllByIDs
func (*MockCategoryRepositoryMockRecorder) FindByID ¶
func (mr *MockCategoryRepositoryMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
FindByID indicates an expected call of FindByID
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) EXPECT ¶
func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPostRepository) FindAll ¶
func (m *MockPostRepository) FindAll(arg0 context.Context, arg1 blog.PostQuery) ([]blog.Post, error)
FindAll mocks base method
type MockPostRepositoryMockRecorder ¶
type MockPostRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository
func (*MockPostRepositoryMockRecorder) Create ¶
func (mr *MockPostRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockPostRepositoryMockRecorder) FindAll ¶
func (mr *MockPostRepositoryMockRecorder) FindAll(arg0, arg1 interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockPostRepositoryMockRecorder) FindByID ¶
func (mr *MockPostRepositoryMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
FindByID indicates an expected call of FindByID
func (*MockPostRepositoryMockRecorder) Save ¶
func (mr *MockPostRepositoryMockRecorder) Save(arg0, arg1, arg2 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockTagRepository ¶
type MockTagRepository struct {
// contains filtered or unexported fields
}
MockTagRepository is a mock of TagRepository interface
func NewMockTagRepository ¶
func NewMockTagRepository(ctrl *gomock.Controller) *MockTagRepository
NewMockTagRepository creates a new mock instance
func (*MockTagRepository) EXPECT ¶
func (m *MockTagRepository) EXPECT() *MockTagRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagRepository) FindAllByIDs ¶
func (m *MockTagRepository) FindAllByIDs(arg0 context.Context, arg1 interface{}) ([]blog.Tag, error)
FindAllByIDs mocks base method
type MockTagRepositoryMockRecorder ¶
type MockTagRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTagRepositoryMockRecorder is the mock recorder for MockTagRepository
func (*MockTagRepositoryMockRecorder) FindAll ¶
func (mr *MockTagRepositoryMockRecorder) FindAll(arg0 interface{}) *gomock.Call
FindAll indicates an expected call of FindAll
func (*MockTagRepositoryMockRecorder) FindAllByIDs ¶
func (mr *MockTagRepositoryMockRecorder) FindAllByIDs(arg0, arg1 interface{}) *gomock.Call
FindAllByIDs indicates an expected call of FindAllByIDs
func (*MockTagRepositoryMockRecorder) FindByID ¶
func (mr *MockTagRepositoryMockRecorder) FindByID(arg0, arg1 interface{}) *gomock.Call
FindByID indicates an expected call of FindByID