Documentation
¶
Index ¶
- type MockDynamoDBQueryClient
- type MockDynamoDBQueryClient_Expecter
- type MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) Return(_a0 *dynamodb.QueryOutput, _a1 error) *MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) Run(...) *MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) RunAndReturn(...) *MockDynamoDBQueryClient_Query_Call
- type MockIpniFinder
- type MockIpniFinder_Expecter
- type MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) Return(_a0 *model.FindResponse, _a1 error) *MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) Run(run func(_a0 context.Context, _a1 multihash.Multihash)) *MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) (*model.FindResponse, error)) *MockIpniFinder_Find_Call
- type MockIpniPublisher
- type MockIpniPublisher_Expecter
- type MockIpniPublisher_Publish_Call
- func (_c *MockIpniPublisher_Publish_Call) Return(_a0 ipld.Link, _a1 error) *MockIpniPublisher_Publish_Call
- func (_c *MockIpniPublisher_Publish_Call) Run(run func(ctx context.Context, provider peer.AddrInfo, contextID string, ...)) *MockIpniPublisher_Publish_Call
- func (_c *MockIpniPublisher_Publish_Call) RunAndReturn(...) *MockIpniPublisher_Publish_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDynamoDBQueryClient ¶
MockDynamoDBQueryClient is an autogenerated mock type for the QueryAPIClient type
func NewMockDynamoDBQueryClient ¶
func NewMockDynamoDBQueryClient(t interface { mock.TestingT Cleanup(func()) }) *MockDynamoDBQueryClient
NewMockDynamoDBQueryClient creates a new instance of MockDynamoDBQueryClient. 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 (*MockDynamoDBQueryClient) EXPECT ¶
func (_m *MockDynamoDBQueryClient) EXPECT() *MockDynamoDBQueryClient_Expecter
func (*MockDynamoDBQueryClient) Query ¶
func (_m *MockDynamoDBQueryClient) Query(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)
Query provides a mock function with given fields: _a0, _a1, _a2
type MockDynamoDBQueryClient_Expecter ¶
type MockDynamoDBQueryClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDynamoDBQueryClient_Expecter) Query ¶
func (_e *MockDynamoDBQueryClient_Expecter) Query(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockDynamoDBQueryClient_Query_Call
Query is a helper method to define mock.On call
- _a0 context.Context
- _a1 *dynamodb.QueryInput
- _a2 ...func(*dynamodb.Options)
type MockDynamoDBQueryClient_Query_Call ¶
MockDynamoDBQueryClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockDynamoDBQueryClient_Query_Call) Return ¶
func (_c *MockDynamoDBQueryClient_Query_Call) Return(_a0 *dynamodb.QueryOutput, _a1 error) *MockDynamoDBQueryClient_Query_Call
func (*MockDynamoDBQueryClient_Query_Call) Run ¶
func (_c *MockDynamoDBQueryClient_Query_Call) Run(run func(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 ...func(*dynamodb.Options))) *MockDynamoDBQueryClient_Query_Call
func (*MockDynamoDBQueryClient_Query_Call) RunAndReturn ¶
func (_c *MockDynamoDBQueryClient_Query_Call) RunAndReturn(run func(context.Context, *dynamodb.QueryInput, ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)) *MockDynamoDBQueryClient_Query_Call
type MockIpniFinder ¶
MockIpniFinder is an autogenerated mock type for the Finder type
func NewMockIpniFinder ¶
func NewMockIpniFinder(t interface { mock.TestingT Cleanup(func()) }) *MockIpniFinder
NewMockIpniFinder creates a new instance of MockIpniFinder. 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 (*MockIpniFinder) EXPECT ¶
func (_m *MockIpniFinder) EXPECT() *MockIpniFinder_Expecter
func (*MockIpniFinder) Find ¶
func (_m *MockIpniFinder) Find(_a0 context.Context, _a1 multihash.Multihash) (*model.FindResponse, error)
Find provides a mock function with given fields: _a0, _a1
type MockIpniFinder_Expecter ¶
type MockIpniFinder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIpniFinder_Expecter) Find ¶
func (_e *MockIpniFinder_Expecter) Find(_a0 interface{}, _a1 interface{}) *MockIpniFinder_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 multihash.Multihash
type MockIpniFinder_Find_Call ¶
MockIpniFinder_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockIpniFinder_Find_Call) Return ¶
func (_c *MockIpniFinder_Find_Call) Return(_a0 *model.FindResponse, _a1 error) *MockIpniFinder_Find_Call
func (*MockIpniFinder_Find_Call) Run ¶
func (_c *MockIpniFinder_Find_Call) Run(run func(_a0 context.Context, _a1 multihash.Multihash)) *MockIpniFinder_Find_Call
func (*MockIpniFinder_Find_Call) RunAndReturn ¶
func (_c *MockIpniFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) (*model.FindResponse, error)) *MockIpniFinder_Find_Call
type MockIpniPublisher ¶
MockIpniPublisher is an autogenerated mock type for the Publisher type
func NewMockIpniPublisher ¶
func NewMockIpniPublisher(t interface { mock.TestingT Cleanup(func()) }) *MockIpniPublisher
NewMockIpniPublisher creates a new instance of MockIpniPublisher. 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 (*MockIpniPublisher) EXPECT ¶
func (_m *MockIpniPublisher) EXPECT() *MockIpniPublisher_Expecter
func (*MockIpniPublisher) Publish ¶
func (_m *MockIpniPublisher) Publish(ctx context.Context, provider peer.AddrInfo, contextID string, digests iter.Seq[multihash.Multihash], meta metadata.Metadata) (ipld.Link, error)
Publish provides a mock function with given fields: ctx, provider, contextID, digests, meta
type MockIpniPublisher_Expecter ¶
type MockIpniPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIpniPublisher_Expecter) Publish ¶
func (_e *MockIpniPublisher_Expecter) Publish(ctx interface{}, provider interface{}, contextID interface{}, digests interface{}, meta interface{}) *MockIpniPublisher_Publish_Call
Publish is a helper method to define mock.On call
- ctx context.Context
- provider peer.AddrInfo
- contextID string
- digests iter.Seq[multihash.Multihash]
- meta metadata.Metadata
type MockIpniPublisher_Publish_Call ¶
MockIpniPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*MockIpniPublisher_Publish_Call) Return ¶
func (_c *MockIpniPublisher_Publish_Call) Return(_a0 ipld.Link, _a1 error) *MockIpniPublisher_Publish_Call