mocks

package
v0.0.0-...-16b4944 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 5 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) DeleteShortcut

func (_m *Store) DeleteShortcut(ctx context.Context, id string, tx pgx.Tx) error

DeleteShortcut provides a mock function with given fields: ctx, id, tx

func (*Store) Get

func (_m *Store) Get(ctx context.Context, id string) (*shortcut.Shortcut, error)

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

func (*Store) GetAll

func (_m *Store) GetAll(ctx context.Context) (<-chan *shortcut.Shortcut, error)

GetAll provides a mock function with given fields: ctx

func (*Store) Insert

func (_m *Store) Insert(ctx context.Context, r io.Reader) (string, error)

Insert provides a mock function with given fields: ctx, r

func (*Store) InsertShortcut

func (_m *Store) InsertShortcut(ctx context.Context, _a1 *shortcut.Shortcut) (string, error)

InsertShortcut 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