Documentation ¶
Index ¶
- type ScrapExchange
- func (_m *ScrapExchange) CreateScrap(ctx context.Context, _a1 scrap.ScrapBody) (scrap.ScrapID, error)
- func (_m *ScrapExchange) DeleteName(ctx context.Context, t scrap.Type, name string) error
- func (_m *ScrapExchange) DeleteScrap(ctx context.Context, t scrap.Type, hashOrName string) error
- func (_m *ScrapExchange) Expand(ctx context.Context, t scrap.Type, hashOrName string, lang scrap.Lang, ...) error
- func (_m *ScrapExchange) GetName(ctx context.Context, t scrap.Type, name string) (scrap.Name, error)
- func (_m *ScrapExchange) ListNames(ctx context.Context, t scrap.Type) ([]string, error)
- func (_m *ScrapExchange) LoadScrap(ctx context.Context, t scrap.Type, hashOrName string) (scrap.ScrapBody, error)
- func (_m *ScrapExchange) PutName(ctx context.Context, t scrap.Type, name string, nameBody scrap.Name) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapExchange ¶
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 ¶
DeleteName provides a mock function with given fields: ctx, t, name
func (*ScrapExchange) DeleteScrap ¶
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