mocks

package
v0.0.0-...-a8786dc Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 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 DBTX

type DBTX struct {
	mock.Mock
}

DBTX is an autogenerated mock type for the DBTX type

func (*DBTX) ExecContext

func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)

ExecContext provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) PrepareContext

func (_m *DBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)

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

func (*DBTX) QueryContext

func (_m *DBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)

QueryContext provides a mock function with given fields: _a0, _a1, _a2

func (*DBTX) QueryRowContext

func (_m *DBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: _a0, _a1, _a2

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) CountListHearts

func (_m *Repository) CountListHearts(ctx context.Context, list_id int64) (int64, error)

CountListHearts provides a mock function with given fields: ctx, list_id

func (*Repository) CountListHeartsByUser

func (_m *Repository) CountListHeartsByUser(ctx context.Context, user_id int64) (int64, error)

CountListHeartsByUser provides a mock function with given fields: ctx, user_id

func (*Repository) CreateList

func (_m *Repository) CreateList(ctx context.Context, arg pg.CreateListParams) (pg.List, error)

CreateList provides a mock function with given fields: ctx, arg

func (*Repository) CreateListItem

func (_m *Repository) CreateListItem(ctx context.Context, itemArg pg.CreateItemParams, listItemArg pg.SetListItemParams) (*pg.Item, error)

CreateListItem provides a mock function with given fields: ctx, itemArg, listItemArg

func (*Repository) CreateUser

func (_m *Repository) CreateUser(ctx context.Context, arg pg.CreateUserParams) (pg.User, error)

CreateUser provides a mock function with given fields: ctx, arg

func (*Repository) DeleteItem

func (_m *Repository) DeleteItem(ctx context.Context, id int64) (pg.Item, error)

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

func (*Repository) DeleteList

func (_m *Repository) DeleteList(ctx context.Context, id int64) (pg.List, error)

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

func (*Repository) DeleteUser

func (_m *Repository) DeleteUser(ctx context.Context, id int64) (pg.User, error)

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

func (*Repository) GetItem

func (_m *Repository) GetItem(ctx context.Context, id int64) (pg.Item, error)

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

func (*Repository) GetList

func (_m *Repository) GetList(ctx context.Context, id int64) (pg.List, error)

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

func (*Repository) GetListHearts

func (_m *Repository) GetListHearts(ctx context.Context, list_id int64) ([]pg.ListHeart, error)

GetListHearts provides a mock function with given fields: ctx, list_id

func (*Repository) GetListHeartsByUser

func (_m *Repository) GetListHeartsByUser(ctx context.Context, user_id int64) ([]pg.ListHeart, error)

GetListHeartsByUser provides a mock function with given fields: ctx, user_id

func (*Repository) GetListListItems

func (_m *Repository) GetListListItems(ctx context.Context, list_id int64) ([]pg.ListItem, error)

GetListListItems provides a mock function with given fields: ctx, list_id

func (*Repository) GetUser

func (_m *Repository) GetUser(ctx context.Context, id int64) (pg.User, error)

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

func (*Repository) GetUserByEmail

func (_m *Repository) GetUserByEmail(ctx context.Context, email string) (pg.User, error)

GetUserByEmail provides a mock function with given fields: ctx, email

func (*Repository) GetUserLists

func (_m *Repository) GetUserLists(ctx context.Context, user_id int64) ([]pg.List, error)

GetUserLists provides a mock function with given fields: ctx, user_id

func (*Repository) ListItems

func (_m *Repository) ListItems(ctx context.Context) ([]pg.Item, error)

ListItems provides a mock function with given fields: ctx

func (*Repository) ListLists

func (_m *Repository) ListLists(ctx context.Context) ([]pg.List, error)

ListLists provides a mock function with given fields: ctx

func (*Repository) ListUsers

func (_m *Repository) ListUsers(ctx context.Context) ([]pg.User, error)

ListUsers provides a mock function with given fields: ctx

func (*Repository) SetListHeart

func (_m *Repository) SetListHeart(ctx context.Context, arg pg.SetListHeartParams) error

SetListHeart provides a mock function with given fields: ctx, arg

func (*Repository) SetListItem

func (_m *Repository) SetListItem(ctx context.Context, arg pg.SetListItemParams) error

SetListItem provides a mock function with given fields: ctx, arg

func (*Repository) UnsetListHeart

func (_m *Repository) UnsetListHeart(ctx context.Context, id int64) error

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

func (*Repository) UnsetListItem

func (_m *Repository) UnsetListItem(ctx context.Context, id int64) error

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

func (*Repository) UpdateItem

func (_m *Repository) UpdateItem(ctx context.Context, arg pg.UpdateItemParams) (pg.Item, error)

UpdateItem provides a mock function with given fields: ctx, arg

func (*Repository) UpdateList

func (_m *Repository) UpdateList(ctx context.Context, arg pg.UpdateListParams) (pg.List, error)

UpdateList provides a mock function with given fields: ctx, arg

func (*Repository) UpdateListItem

func (_m *Repository) UpdateListItem(ctx context.Context, arg pg.UpdateListItemParams) error

UpdateListItem provides a mock function with given fields: ctx, arg

func (*Repository) UpdateUser

func (_m *Repository) UpdateUser(ctx context.Context, arg pg.UpdateUserParams) (pg.User, error)

UpdateUser provides a mock function with given fields: ctx, arg

Jump to

Keyboard shortcuts

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