mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPinningClient

type MockPinningClient struct {
	mock.Mock
}

MockPinningClient is an autogenerated mock type for the PinningClient type

func NewMockPinningClient

func NewMockPinningClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPinningClient

NewMockPinningClient creates a new instance of MockPinningClient. 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 (*MockPinningClient) Add

func (_mock *MockPinningClient) Add(ctx context.Context, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption) (go_pinning_service_http_client.PinStatusGetter, error)

Add provides a mock function for the type MockPinningClient

func (*MockPinningClient) DeleteByID

func (_mock *MockPinningClient) DeleteByID(ctx context.Context, pinID string) error

DeleteByID provides a mock function for the type MockPinningClient

func (*MockPinningClient) EXPECT

func (*MockPinningClient) GetStatusByID

func (_mock *MockPinningClient) GetStatusByID(ctx context.Context, pinID string) (go_pinning_service_http_client.PinStatusGetter, error)

GetStatusByID provides a mock function for the type MockPinningClient

func (*MockPinningClient) LsSync

func (_mock *MockPinningClient) LsSync(ctx context.Context, opts ...go_pinning_service_http_client.LsOption) ([]go_pinning_service_http_client.PinStatusGetter, error)

LsSync provides a mock function for the type MockPinningClient

func (*MockPinningClient) Replace

func (_mock *MockPinningClient) Replace(ctx context.Context, pinID string, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption) (go_pinning_service_http_client.PinStatusGetter, error)

Replace provides a mock function for the type MockPinningClient

type MockPinningClient_Add_Call

type MockPinningClient_Add_Call struct {
	*mock.Call
}

MockPinningClient_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*MockPinningClient_Add_Call) Return

func (_c *MockPinningClient_Add_Call) Return(pinStatusGetter go_pinning_service_http_client.PinStatusGetter, err error) *MockPinningClient_Add_Call

func (*MockPinningClient_Add_Call) Run

func (_c *MockPinningClient_Add_Call) Run(run func(ctx context.Context, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption)) *MockPinningClient_Add_Call

func (*MockPinningClient_Add_Call) RunAndReturn

func (_c *MockPinningClient_Add_Call) RunAndReturn(run func(ctx context.Context, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption) (go_pinning_service_http_client.PinStatusGetter, error)) *MockPinningClient_Add_Call

type MockPinningClient_DeleteByID_Call

type MockPinningClient_DeleteByID_Call struct {
	*mock.Call
}

MockPinningClient_DeleteByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByID'

func (*MockPinningClient_DeleteByID_Call) Return

func (*MockPinningClient_DeleteByID_Call) Run

func (*MockPinningClient_DeleteByID_Call) RunAndReturn

type MockPinningClient_Expecter

type MockPinningClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPinningClient_Expecter) Add

func (_e *MockPinningClient_Expecter) Add(ctx interface{}, cid1 interface{}, opts ...interface{}) *MockPinningClient_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • cid1 cid.Cid
  • opts ...go_pinning_service_http_client.AddOption

func (*MockPinningClient_Expecter) DeleteByID

func (_e *MockPinningClient_Expecter) DeleteByID(ctx interface{}, pinID interface{}) *MockPinningClient_DeleteByID_Call

DeleteByID is a helper method to define mock.On call

  • ctx context.Context
  • pinID string

func (*MockPinningClient_Expecter) GetStatusByID

func (_e *MockPinningClient_Expecter) GetStatusByID(ctx interface{}, pinID interface{}) *MockPinningClient_GetStatusByID_Call

GetStatusByID is a helper method to define mock.On call

  • ctx context.Context
  • pinID string

func (*MockPinningClient_Expecter) LsSync

func (_e *MockPinningClient_Expecter) LsSync(ctx interface{}, opts ...interface{}) *MockPinningClient_LsSync_Call

LsSync is a helper method to define mock.On call

  • ctx context.Context
  • opts ...go_pinning_service_http_client.LsOption

func (*MockPinningClient_Expecter) Replace

func (_e *MockPinningClient_Expecter) Replace(ctx interface{}, pinID interface{}, cid1 interface{}, opts ...interface{}) *MockPinningClient_Replace_Call

Replace is a helper method to define mock.On call

  • ctx context.Context
  • pinID string
  • cid1 cid.Cid
  • opts ...go_pinning_service_http_client.AddOption

type MockPinningClient_GetStatusByID_Call

type MockPinningClient_GetStatusByID_Call struct {
	*mock.Call
}

MockPinningClient_GetStatusByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusByID'

func (*MockPinningClient_GetStatusByID_Call) Return

func (_c *MockPinningClient_GetStatusByID_Call) Return(pinStatusGetter go_pinning_service_http_client.PinStatusGetter, err error) *MockPinningClient_GetStatusByID_Call

func (*MockPinningClient_GetStatusByID_Call) Run

func (*MockPinningClient_GetStatusByID_Call) RunAndReturn

func (_c *MockPinningClient_GetStatusByID_Call) RunAndReturn(run func(ctx context.Context, pinID string) (go_pinning_service_http_client.PinStatusGetter, error)) *MockPinningClient_GetStatusByID_Call

type MockPinningClient_LsSync_Call

type MockPinningClient_LsSync_Call struct {
	*mock.Call
}

MockPinningClient_LsSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LsSync'

func (*MockPinningClient_LsSync_Call) Return

func (_c *MockPinningClient_LsSync_Call) Return(pinStatusGetters []go_pinning_service_http_client.PinStatusGetter, err error) *MockPinningClient_LsSync_Call

func (*MockPinningClient_LsSync_Call) Run

func (_c *MockPinningClient_LsSync_Call) Run(run func(ctx context.Context, opts ...go_pinning_service_http_client.LsOption)) *MockPinningClient_LsSync_Call

func (*MockPinningClient_LsSync_Call) RunAndReturn

func (_c *MockPinningClient_LsSync_Call) RunAndReturn(run func(ctx context.Context, opts ...go_pinning_service_http_client.LsOption) ([]go_pinning_service_http_client.PinStatusGetter, error)) *MockPinningClient_LsSync_Call

type MockPinningClient_Replace_Call

type MockPinningClient_Replace_Call struct {
	*mock.Call
}

MockPinningClient_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'

func (*MockPinningClient_Replace_Call) Return

func (_c *MockPinningClient_Replace_Call) Return(pinStatusGetter go_pinning_service_http_client.PinStatusGetter, err error) *MockPinningClient_Replace_Call

func (*MockPinningClient_Replace_Call) Run

func (_c *MockPinningClient_Replace_Call) Run(run func(ctx context.Context, pinID string, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption)) *MockPinningClient_Replace_Call

func (*MockPinningClient_Replace_Call) RunAndReturn

func (_c *MockPinningClient_Replace_Call) RunAndReturn(run func(ctx context.Context, pinID string, cid1 cid.Cid, opts ...go_pinning_service_http_client.AddOption) (go_pinning_service_http_client.PinStatusGetter, error)) *MockPinningClient_Replace_Call

Jump to

Keyboard shortcuts

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