mocks

package
v0.0.0-...-842b49f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 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 TaskHttpService

type TaskHttpService struct {
	mock.Mock
}

TaskHttpService is an autogenerated mock type for the TaskHttpService type

func NewTaskHttpService

func NewTaskHttpService(t mockConstructorTestingTNewTaskHttpService) *TaskHttpService

NewTaskHttpService creates a new instance of TaskHttpService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TaskHttpService) Create

func (_m *TaskHttpService) Create(w http.ResponseWriter, r *http.Request)

Create provides a mock function with given fields: w, r

func (*TaskHttpService) List

List provides a mock function with given fields: w, r

func (*TaskHttpService) ListDone

func (_m *TaskHttpService) ListDone(w http.ResponseWriter, r *http.Request)

ListDone provides a mock function with given fields: w, r

func (*TaskHttpService) ListPending

func (_m *TaskHttpService) ListPending(w http.ResponseWriter, r *http.Request)

ListPending provides a mock function with given fields: w, r

func (*TaskHttpService) MarkDone

func (_m *TaskHttpService) MarkDone(w http.ResponseWriter, r *http.Request)

MarkDone provides a mock function with given fields: w, r

func (*TaskHttpService) MarkPending

func (_m *TaskHttpService) MarkPending(w http.ResponseWriter, r *http.Request)

MarkPending provides a mock function with given fields: w, r

func (*TaskHttpService) Update

func (_m *TaskHttpService) Update(w http.ResponseWriter, r *http.Request)

Update provides a mock function with given fields: w, r

type TaskRepo

type TaskRepo struct {
	mock.Mock
}

TaskRepo is an autogenerated mock type for the TaskRepo type

func NewTaskRepo

func NewTaskRepo(t mockConstructorTestingTNewTaskRepo) *TaskRepo

NewTaskRepo creates a new instance of TaskRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TaskRepo) Create

func (_m *TaskRepo) Create(ctx context.Context, task gsp.Task) (*gsp.Task, error)

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

func (*TaskRepo) Get

func (_m *TaskRepo) Get(ctx context.Context, id string) (*gsp.Task, error)

Get provides a mock function with given fields: ctx, id

func (*TaskRepo) List

func (_m *TaskRepo) List(ctx context.Context) ([]gsp.Task, error)

List provides a mock function with given fields: ctx

func (*TaskRepo) Update

func (_m *TaskRepo) Update(ctx context.Context, task gsp.Task) error

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

type TaskService

type TaskService struct {
	mock.Mock
}

TaskService is an autogenerated mock type for the TaskService type

func NewTaskService

func NewTaskService(t mockConstructorTestingTNewTaskService) *TaskService

NewTaskService creates a new instance of TaskService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TaskService) Create

func (_m *TaskService) Create(ctx context.Context) (*gsp.Task, error)

Create provides a mock function with given fields: ctx

func (*TaskService) List

func (_m *TaskService) List(ctx context.Context) ([]gsp.Task, error)

List provides a mock function with given fields: ctx

func (*TaskService) ListDone

func (_m *TaskService) ListDone(ctx context.Context) ([]gsp.Task, error)

ListDone provides a mock function with given fields: ctx

func (*TaskService) ListPending

func (_m *TaskService) ListPending(ctx context.Context) ([]gsp.Task, error)

ListPending provides a mock function with given fields: ctx

func (*TaskService) MarkDone

func (_m *TaskService) MarkDone(ctx context.Context) error

MarkDone provides a mock function with given fields: ctx

func (*TaskService) MarkPending

func (_m *TaskService) MarkPending(ctx context.Context) error

MarkPending provides a mock function with given fields: ctx

func (*TaskService) Update

func (_m *TaskService) Update(ctx context.Context) error

Update provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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