mocks

package
v0.0.0-...-40caaa6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrapExchange

type ScrapExchange struct {
	mock.Mock
}

ScrapExchange is an autogenerated mock type for the ScrapExchange type

func NewScrapExchange

func NewScrapExchange(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScrapExchange

NewScrapExchange creates a new instance of ScrapExchange. 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 (*ScrapExchange) CreateScrap

func (_m *ScrapExchange) CreateScrap(ctx context.Context, _a1 scrap.ScrapBody) (scrap.ScrapID, error)

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

func (*ScrapExchange) DeleteName

func (_m *ScrapExchange) DeleteName(ctx context.Context, t scrap.Type, name string) error

DeleteName provides a mock function with given fields: ctx, t, name

func (*ScrapExchange) DeleteScrap

func (_m *ScrapExchange) DeleteScrap(ctx context.Context, t scrap.Type, hashOrName string) error

DeleteScrap provides a mock function with given fields: ctx, t, hashOrName

func (*ScrapExchange) Expand

func (_m *ScrapExchange) Expand(ctx context.Context, t scrap.Type, hashOrName string, lang scrap.Lang, w io.Writer) error

Expand provides a mock function with given fields: ctx, t, hashOrName, lang, w

func (*ScrapExchange) GetName

func (_m *ScrapExchange) GetName(ctx context.Context, t scrap.Type, name string) (scrap.Name, error)

GetName provides a mock function with given fields: ctx, t, name

func (*ScrapExchange) ListNames

func (_m *ScrapExchange) ListNames(ctx context.Context, t scrap.Type) ([]string, error)

ListNames provides a mock function with given fields: ctx, t

func (*ScrapExchange) LoadScrap

func (_m *ScrapExchange) LoadScrap(ctx context.Context, t scrap.Type, hashOrName string) (scrap.ScrapBody, error)

LoadScrap provides a mock function with given fields: ctx, t, hashOrName

func (*ScrapExchange) PutName

func (_m *ScrapExchange) PutName(ctx context.Context, t scrap.Type, name string, nameBody scrap.Name) error

PutName provides a mock function with given fields: ctx, t, name, nameBody

Jump to

Keyboard shortcuts

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