db

package
v0.0.0-...-4bfe12e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodoRepository

type TodoRepository struct {
	mock.Mock
}

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) Create

func (_m *TodoRepository) Create(ctx context.Context, todo *model.Todo) (*model.Todo, error)

Create provides a mock function with given fields: ctx, todo

func (*TodoRepository) DeleteByUUID

func (_m *TodoRepository) DeleteByUUID(ctx context.Context, _a1 uuid.UUID) error

DeleteByUUID provides a mock function with given fields: ctx, _a1

func (*TodoRepository) GetAll

func (_m *TodoRepository) GetAll(ctx context.Context) ([]model.Todo, error)

GetAll provides a mock function with given fields: ctx

func (*TodoRepository) GetByUUID

func (_m *TodoRepository) GetByUUID(ctx context.Context, _a1 uuid.UUID) (*model.Todo, error)

GetByUUID provides a mock function with given fields: ctx, _a1

func (*TodoRepository) Update

func (_m *TodoRepository) Update(ctx context.Context, todo *model.Todo) (*model.Todo, error)

Update provides a mock function with given fields: ctx, todo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL