Documentation ¶
Overview ¶
Package mock_article is a generated GoMock package.
Package mock_article is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Delete(ctx context.Context, id int64) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)
- func (m *MockRepository) GetByID(ctx context.Context, id int64) (*entity.Article, error)
- func (m *MockRepository) GetByTitle(ctx context.Context, title string) (*entity.Article, error)
- func (m *MockRepository) Store(ctx context.Context, a *entity.Article) error
- func (m *MockRepository) Update(ctx context.Context, ar *entity.Article) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Store(ctx, a interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, ar interface{}) *gomock.Call
- type MockUsecase
- func (m *MockUsecase) Delete(ctx context.Context, id int64) error
- func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
- func (m *MockUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)
- func (m *MockUsecase) GetByID(ctx context.Context, id int64) (*entity.Article, error)
- func (m *MockUsecase) GetByTitle(ctx context.Context, title string) (*entity.Article, error)
- func (m *MockUsecase) Store(arg0 context.Context, arg1 *entity.Article) error
- func (m *MockUsecase) Update(ctx context.Context, ar *entity.Article) error
- type MockUsecaseMockRecorder
- func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Update(ctx, ar interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, id int64) error
Delete mocks base method
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRepository) Fetch ¶
func (m *MockRepository) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)
Fetch mocks base method
func (*MockRepository) GetByTitle ¶
GetByTitle mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockRepositoryMockRecorder) Fetch ¶
func (mr *MockRepositoryMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockRepositoryMockRecorder) GetByID ¶
func (mr *MockRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockRepositoryMockRecorder) GetByTitle ¶
func (mr *MockRepositoryMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call
GetByTitle indicates an expected call of GetByTitle
func (*MockRepositoryMockRecorder) Store ¶
func (mr *MockRepositoryMockRecorder) Store(ctx, a interface{}) *gomock.Call
Store indicates an expected call of Store
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, ar interface{}) *gomock.Call
Update indicates an expected call of Update
type MockUsecase ¶
type MockUsecase struct {
// contains filtered or unexported fields
}
MockUsecase is a mock of Usecase interface
func NewMockUsecase ¶
func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase
NewMockUsecase creates a new mock instance
func (*MockUsecase) Delete ¶
func (m *MockUsecase) Delete(ctx context.Context, id int64) error
Delete mocks base method
func (*MockUsecase) EXPECT ¶
func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUsecase) Fetch ¶
func (m *MockUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]*entity.Article, string, error)
Fetch mocks base method
func (*MockUsecase) GetByTitle ¶
GetByTitle mocks base method
type MockUsecaseMockRecorder ¶
type MockUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseMockRecorder is the mock recorder for MockUsecase
func (*MockUsecaseMockRecorder) Delete ¶
func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockUsecaseMockRecorder) Fetch ¶
func (mr *MockUsecaseMockRecorder) Fetch(ctx, cursor, num interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockUsecaseMockRecorder) GetByID ¶
func (mr *MockUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockUsecaseMockRecorder) GetByTitle ¶
func (mr *MockUsecaseMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call
GetByTitle indicates an expected call of GetByTitle
func (*MockUsecaseMockRecorder) Store ¶
func (mr *MockUsecaseMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call
Store indicates an expected call of Store
func (*MockUsecaseMockRecorder) Update ¶
func (mr *MockUsecaseMockRecorder) Update(ctx, ar interface{}) *gomock.Call
Update indicates an expected call of Update