mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepo

type IRepo struct {
	mock.Mock
}

IRepo is an autogenerated mock type for the IRepo type

func (*IRepo) Count

func (_m *IRepo) Count(ctx contextx.Contextx) (int, error)

Count provides a mock function with given fields: ctx

func (*IRepo) Create

func (_m *IRepo) Create(ctx contextx.Contextx, newTask *todo.Task) (*todo.Task, error)

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

func (*IRepo) GetByID

func (_m *IRepo) GetByID(ctx contextx.Contextx, id string) (*todo.Task, error)

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

func (*IRepo) List

func (_m *IRepo) List(ctx contextx.Contextx, limit int, offset int) ([]*todo.Task, error)

List provides a mock function with given fields: ctx, limit, offset

func (*IRepo) Remove

func (_m *IRepo) Remove(ctx contextx.Contextx, id string) error

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

func (*IRepo) Update

func (_m *IRepo) Update(ctx contextx.Contextx, updated *todo.Task) (*todo.Task, error)

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

Jump to

Keyboard shortcuts

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