mocks

package
v0.0.0-...-d084f79 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.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 DatabaseClient

type DatabaseClient struct {
	mock.Mock
}

DatabaseClient is an autogenerated mock type for the DatabaseClient type

func (*DatabaseClient) GetConnection

func (_m *DatabaseClient) GetConnection() *pg.DB

GetConnection provides a mock function with given fields:

func (*DatabaseClient) Shutdown

func (_m *DatabaseClient) Shutdown() error

Shutdown provides a mock function with given fields:

type TodoStore

type TodoStore struct {
	mock.Mock
}

TodoStore is an autogenerated mock type for the TodoStore type

func (*TodoStore) DeleteTodo

func (_m *TodoStore) DeleteTodo(ctx context.Context, id int) (int, error)

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

func (*TodoStore) GetTodo

func (_m *TodoStore) GetTodo(ctx context.Context, id int) (models.Todo, bool, error)

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

func (*TodoStore) PostTodo

func (_m *TodoStore) PostTodo(ctx context.Context, _a1 models.Todo) (int, error)

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

Jump to

Keyboard shortcuts

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