mocks

package
v0.0.0-...-f433991 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Store) Create

func (_m *Store) Create(ctx context.Context, req *favorites.SaveRequest) error

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

func (*Store) Delete

func (_m *Store) Delete(ctx context.Context, userId string, id string) error

Delete provides a mock function with given fields: ctx, userId, id

func (*Store) Get

func (_m *Store) Get(ctx context.Context, id string) (*favorites.Favorite, error)

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

func (*Store) List

func (_m *Store) List(ctx context.Context, userId string) ([]*favorites.Favorite, error)

List provides a mock function with given fields: ctx, userId

func (*Store) Liveness

func (_m *Store) Liveness(ctx context.Context) error

Liveness provides a mock function with given fields: ctx

func (*Store) Update

func (_m *Store) Update(ctx context.Context, req *favorites.SaveRequest, id string) error

Update provides a mock function with given fields: ctx, req, id

Jump to

Keyboard shortcuts

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