mocks

package
v0.0.0-...-d481519 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clocker

type Clocker struct {
	mock.Mock
}

Clocker is an autogenerated mock type for the Clocker type

func (*Clocker) Now

func (_m *Clocker) Now() time.Time

Now provides a mock function with given fields:

type Generator

type Generator struct {
	mock.Mock
}

Generator is an autogenerated mock type for the Generator type

func (*Generator) Nanoid

func (_m *Generator) Nanoid() string

Nanoid provides a mock function with given fields:

func (*Generator) UUID

func (_m *Generator) UUID() string

UUID provides a mock function with given fields:

type TodoRepository

type TodoRepository struct {
	mock.Mock
}

TodoRepository is an autogenerated mock type for the TodoRepository type

func (*TodoRepository) Create

func (_m *TodoRepository) Create(_a0 context.Context, _a1 domain.Todo) error

Create provides a mock function with given fields: _a0, _a1

func (*TodoRepository) DeleteByID

func (_m *TodoRepository) DeleteByID(_a0 context.Context, _a1 string) error

DeleteByID provides a mock function with given fields: _a0, _a1

func (*TodoRepository) Fetch

func (_m *TodoRepository) Fetch(_a0 context.Context) ([]*domain.Todo, error)

Fetch provides a mock function with given fields: _a0

func (*TodoRepository) GetByID

func (_m *TodoRepository) GetByID(_a0 context.Context, _a1 string) (*domain.Todo, error)

GetByID provides a mock function with given fields: _a0, _a1

func (*TodoRepository) ReplaceByID

func (_m *TodoRepository) ReplaceByID(_a0 context.Context, _a1 domain.Todo) error

ReplaceByID provides a mock function with given fields: _a0, _a1

func (*TodoRepository) UpdateByID

func (_m *TodoRepository) UpdateByID(_a0 context.Context, _a1 domain.Todo) error

UpdateByID provides a mock function with given fields: _a0, _a1

type TodoUsecase

type TodoUsecase struct {
	mock.Mock
}

TodoUsecase is an autogenerated mock type for the TodoUsecase type

func (*TodoUsecase) CreateTodo

func (_m *TodoUsecase) CreateTodo(_a0 context.Context, _a1 domain.TodoCreatePayload) error

CreateTodo provides a mock function with given fields: _a0, _a1

func (*TodoUsecase) DeleteTodoByID

func (_m *TodoUsecase) DeleteTodoByID(_a0 context.Context, _a1 string) error

DeleteTodoByID provides a mock function with given fields: _a0, _a1

func (*TodoUsecase) FetchTodos

func (_m *TodoUsecase) FetchTodos(_a0 context.Context) ([]*domain.Todo, error)

FetchTodos provides a mock function with given fields: _a0

func (*TodoUsecase) GetTodoByID

func (_m *TodoUsecase) GetTodoByID(_a0 context.Context, _a1 string) (*domain.Todo, error)

GetTodoByID provides a mock function with given fields: _a0, _a1

func (*TodoUsecase) ReplaceTodoByID

func (_m *TodoUsecase) ReplaceTodoByID(_a0 context.Context, _a1 domain.TodoReplacePayload) error

ReplaceTodoByID provides a mock function with given fields: _a0, _a1

func (*TodoUsecase) UpdateTodoByID

func (_m *TodoUsecase) UpdateTodoByID(_a0 context.Context, _a1 domain.TodoUpdatePayload) error

UpdateTodoByID provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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