Documentation ¶
Index ¶
- type TodoRepository
- func (_m *TodoRepository) Create(ctx context.Context, todo *model.Todo) (*model.Todo, error)
- func (_m *TodoRepository) DeleteByUUID(ctx context.Context, _a1 uuid.UUID) error
- func (_m *TodoRepository) GetAll(ctx context.Context) ([]model.Todo, error)
- func (_m *TodoRepository) GetByUUID(ctx context.Context, _a1 uuid.UUID) (*model.Todo, error)
- func (_m *TodoRepository) Update(ctx context.Context, todo *model.Todo) (*model.Todo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TodoRepository ¶
TodoRepository is an autogenerated mock type for the TodoRepository type
func NewTodoRepository ¶
func NewTodoRepository(t interface { mock.TestingT Cleanup(func()) }) *TodoRepository
NewTodoRepository creates a new instance of TodoRepository. 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 (*TodoRepository) DeleteByUUID ¶
DeleteByUUID provides a mock function with given fields: ctx, _a1
Click to show internal directories.
Click to hide internal directories.