Documentation
¶
Index ¶
- type MockTaskRepository
- func (m *MockTaskRepository) Create(c context.Context, task *domain.Task) error
- func (m *MockTaskRepository) CreateBatch(c context.Context, tasks []domain.Task) error
- func (m *MockTaskRepository) Delete(ctx context.Context, id string) error
- func (m *MockTaskRepository) FetchByUserID(c context.Context, userID string) ([]domain.Task, error)
- func (m *MockTaskRepository) FetchTaskByID(ctx context.Context, id primitive.ObjectID) (*domain.Task, error)
- func (m *MockTaskRepository) FetchTasks(c context.Context, filter bson.M, projection bson.M, limit, skip int64) ([]domain.Task, error)
- func (m *MockTaskRepository) Update(ctx context.Context, id string, task domain.Task) error
- type TaskUsecase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTaskRepository ¶
func (*MockTaskRepository) CreateBatch ¶
func (*MockTaskRepository) Delete ¶
func (m *MockTaskRepository) Delete(ctx context.Context, id string) error
func (*MockTaskRepository) FetchByUserID ¶
func (*MockTaskRepository) FetchTaskByID ¶
func (*MockTaskRepository) FetchTasks ¶
type TaskUsecase ¶
TaskUsecase is an autogenerated mock type for the TaskUsecase type
func NewTaskUsecase ¶
func NewTaskUsecase(t interface { mock.TestingT Cleanup(func()) }) *TaskUsecase
NewTaskUsecase creates a new instance of TaskUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TaskUsecase) FetchByUserID ¶
FetchByUserID provides a mock function with given fields: c, userID
Click to show internal directories.
Click to hide internal directories.