Documentation
¶
Index ¶
- Variables
- type MockDynamoDBQueryClient
- type MockDynamoDBQueryClient_Expecter
- type MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) Return(queryOutput *dynamodb.QueryOutput, err error) *MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) Run(run func(context1 context.Context, queryInput *dynamodb.QueryInput, ...)) *MockDynamoDBQueryClient_Query_Call
- func (_c *MockDynamoDBQueryClient_Query_Call) RunAndReturn(...) *MockDynamoDBQueryClient_Query_Call
- type MockEventLogger
- func (_mock *MockEventLogger) Debug(args ...interface{})
- func (_mock *MockEventLogger) Debugf(format string, args ...interface{})
- func (_m *MockEventLogger) EXPECT() *MockEventLogger_Expecter
- func (_mock *MockEventLogger) Error(args ...interface{})
- func (_mock *MockEventLogger) Errorf(format string, args ...interface{})
- func (_mock *MockEventLogger) Fatal(args ...interface{})
- func (_mock *MockEventLogger) Fatalf(format string, args ...interface{})
- func (_mock *MockEventLogger) Info(args ...interface{})
- func (_mock *MockEventLogger) Infof(format string, args ...interface{})
- func (_mock *MockEventLogger) Panic(args ...interface{})
- func (_mock *MockEventLogger) Panicf(format string, args ...interface{})
- func (_mock *MockEventLogger) Warn(args ...interface{})
- func (_mock *MockEventLogger) Warnf(format string, args ...interface{})
- type MockEventLogger_Debug_Call
- type MockEventLogger_Debugf_Call
- func (_c *MockEventLogger_Debugf_Call) Return() *MockEventLogger_Debugf_Call
- func (_c *MockEventLogger_Debugf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call
- func (_c *MockEventLogger_Debugf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call
- type MockEventLogger_Error_Call
- type MockEventLogger_Errorf_Call
- func (_c *MockEventLogger_Errorf_Call) Return() *MockEventLogger_Errorf_Call
- func (_c *MockEventLogger_Errorf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call
- func (_c *MockEventLogger_Errorf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call
- type MockEventLogger_Expecter
- func (_e *MockEventLogger_Expecter) Debug(args ...interface{}) *MockEventLogger_Debug_Call
- func (_e *MockEventLogger_Expecter) Debugf(format interface{}, args ...interface{}) *MockEventLogger_Debugf_Call
- func (_e *MockEventLogger_Expecter) Error(args ...interface{}) *MockEventLogger_Error_Call
- func (_e *MockEventLogger_Expecter) Errorf(format interface{}, args ...interface{}) *MockEventLogger_Errorf_Call
- func (_e *MockEventLogger_Expecter) Fatal(args ...interface{}) *MockEventLogger_Fatal_Call
- func (_e *MockEventLogger_Expecter) Fatalf(format interface{}, args ...interface{}) *MockEventLogger_Fatalf_Call
- func (_e *MockEventLogger_Expecter) Info(args ...interface{}) *MockEventLogger_Info_Call
- func (_e *MockEventLogger_Expecter) Infof(format interface{}, args ...interface{}) *MockEventLogger_Infof_Call
- func (_e *MockEventLogger_Expecter) Panic(args ...interface{}) *MockEventLogger_Panic_Call
- func (_e *MockEventLogger_Expecter) Panicf(format interface{}, args ...interface{}) *MockEventLogger_Panicf_Call
- func (_e *MockEventLogger_Expecter) Warn(args ...interface{}) *MockEventLogger_Warn_Call
- func (_e *MockEventLogger_Expecter) Warnf(format interface{}, args ...interface{}) *MockEventLogger_Warnf_Call
- type MockEventLogger_Fatal_Call
- type MockEventLogger_Fatalf_Call
- func (_c *MockEventLogger_Fatalf_Call) Return() *MockEventLogger_Fatalf_Call
- func (_c *MockEventLogger_Fatalf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call
- func (_c *MockEventLogger_Fatalf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call
- type MockEventLogger_Info_Call
- type MockEventLogger_Infof_Call
- func (_c *MockEventLogger_Infof_Call) Return() *MockEventLogger_Infof_Call
- func (_c *MockEventLogger_Infof_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call
- func (_c *MockEventLogger_Infof_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call
- type MockEventLogger_Panic_Call
- type MockEventLogger_Panicf_Call
- func (_c *MockEventLogger_Panicf_Call) Return() *MockEventLogger_Panicf_Call
- func (_c *MockEventLogger_Panicf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call
- func (_c *MockEventLogger_Panicf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call
- type MockEventLogger_Warn_Call
- type MockEventLogger_Warnf_Call
- func (_c *MockEventLogger_Warnf_Call) Return() *MockEventLogger_Warnf_Call
- func (_c *MockEventLogger_Warnf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Warnf_Call
- func (_c *MockEventLogger_Warnf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Warnf_Call
- type MockIpniFinder
- type MockIpniFinder_Expecter
- type MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) Return(findResponse *model.FindResponse, err error) *MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) Run(run func(context1 context.Context, multihash1 multihash.Multihash)) *MockIpniFinder_Find_Call
- func (_c *MockIpniFinder_Find_Call) RunAndReturn(...) *MockIpniFinder_Find_Call
- type MockIpniPublisher
- type MockIpniPublisher_Expecter
- type MockIpniPublisher_Publish_Call
- func (_c *MockIpniPublisher_Publish_Call) Return(err 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 ¶
AnyContext is a matcher for testify/mock that matches anything implementing context.Context
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 (_mock *MockDynamoDBQueryClient) Query(context1 context.Context, queryInput *dynamodb.QueryInput, fns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)
Query provides a mock function for the type MockDynamoDBQueryClient
type MockDynamoDBQueryClient_Expecter ¶
type MockDynamoDBQueryClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDynamoDBQueryClient_Expecter) Query ¶
func (_e *MockDynamoDBQueryClient_Expecter) Query(context1 interface{}, queryInput interface{}, fns ...interface{}) *MockDynamoDBQueryClient_Query_Call
Query is a helper method to define mock.On call
- context1 context.Context
- queryInput *dynamodb.QueryInput
- fns ...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(queryOutput *dynamodb.QueryOutput, err error) *MockDynamoDBQueryClient_Query_Call
func (*MockDynamoDBQueryClient_Query_Call) Run ¶
func (_c *MockDynamoDBQueryClient_Query_Call) Run(run func(context1 context.Context, queryInput *dynamodb.QueryInput, fns ...func(*dynamodb.Options))) *MockDynamoDBQueryClient_Query_Call
func (*MockDynamoDBQueryClient_Query_Call) RunAndReturn ¶
func (_c *MockDynamoDBQueryClient_Query_Call) RunAndReturn(run func(context1 context.Context, queryInput *dynamodb.QueryInput, fns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)) *MockDynamoDBQueryClient_Query_Call
type MockEventLogger ¶
MockEventLogger is an autogenerated mock type for the EventLogger type
func NewMockEventLogger ¶
func NewMockEventLogger(t interface {
mock.TestingT
Cleanup(func())
}) *MockEventLogger
NewMockEventLogger creates a new instance of MockEventLogger. 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 (*MockEventLogger) Debug ¶
func (_mock *MockEventLogger) Debug(args ...interface{})
Debug provides a mock function for the type MockEventLogger
func (*MockEventLogger) Debugf ¶
func (_mock *MockEventLogger) Debugf(format string, args ...interface{})
Debugf provides a mock function for the type MockEventLogger
func (*MockEventLogger) EXPECT ¶
func (_m *MockEventLogger) EXPECT() *MockEventLogger_Expecter
func (*MockEventLogger) Error ¶
func (_mock *MockEventLogger) Error(args ...interface{})
Error provides a mock function for the type MockEventLogger
func (*MockEventLogger) Errorf ¶
func (_mock *MockEventLogger) Errorf(format string, args ...interface{})
Errorf provides a mock function for the type MockEventLogger
func (*MockEventLogger) Fatal ¶
func (_mock *MockEventLogger) Fatal(args ...interface{})
Fatal provides a mock function for the type MockEventLogger
func (*MockEventLogger) Fatalf ¶
func (_mock *MockEventLogger) Fatalf(format string, args ...interface{})
Fatalf provides a mock function for the type MockEventLogger
func (*MockEventLogger) Info ¶
func (_mock *MockEventLogger) Info(args ...interface{})
Info provides a mock function for the type MockEventLogger
func (*MockEventLogger) Infof ¶
func (_mock *MockEventLogger) Infof(format string, args ...interface{})
Infof provides a mock function for the type MockEventLogger
func (*MockEventLogger) Panic ¶
func (_mock *MockEventLogger) Panic(args ...interface{})
Panic provides a mock function for the type MockEventLogger
func (*MockEventLogger) Panicf ¶
func (_mock *MockEventLogger) Panicf(format string, args ...interface{})
Panicf provides a mock function for the type MockEventLogger
func (*MockEventLogger) Warn ¶
func (_mock *MockEventLogger) Warn(args ...interface{})
Warn provides a mock function for the type MockEventLogger
func (*MockEventLogger) Warnf ¶
func (_mock *MockEventLogger) Warnf(format string, args ...interface{})
Warnf provides a mock function for the type MockEventLogger
type MockEventLogger_Debug_Call ¶
MockEventLogger_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'
func (*MockEventLogger_Debug_Call) Return ¶
func (_c *MockEventLogger_Debug_Call) Return() *MockEventLogger_Debug_Call
func (*MockEventLogger_Debug_Call) Run ¶
func (_c *MockEventLogger_Debug_Call) Run(run func(args ...interface{})) *MockEventLogger_Debug_Call
func (*MockEventLogger_Debug_Call) RunAndReturn ¶
func (_c *MockEventLogger_Debug_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Debug_Call
type MockEventLogger_Debugf_Call ¶
MockEventLogger_Debugf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debugf'
func (*MockEventLogger_Debugf_Call) Return ¶
func (_c *MockEventLogger_Debugf_Call) Return() *MockEventLogger_Debugf_Call
func (*MockEventLogger_Debugf_Call) Run ¶
func (_c *MockEventLogger_Debugf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call
func (*MockEventLogger_Debugf_Call) RunAndReturn ¶
func (_c *MockEventLogger_Debugf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call
type MockEventLogger_Error_Call ¶
MockEventLogger_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*MockEventLogger_Error_Call) Return ¶
func (_c *MockEventLogger_Error_Call) Return() *MockEventLogger_Error_Call
func (*MockEventLogger_Error_Call) Run ¶
func (_c *MockEventLogger_Error_Call) Run(run func(args ...interface{})) *MockEventLogger_Error_Call
func (*MockEventLogger_Error_Call) RunAndReturn ¶
func (_c *MockEventLogger_Error_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Error_Call
type MockEventLogger_Errorf_Call ¶
MockEventLogger_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'
func (*MockEventLogger_Errorf_Call) Return ¶
func (_c *MockEventLogger_Errorf_Call) Return() *MockEventLogger_Errorf_Call
func (*MockEventLogger_Errorf_Call) Run ¶
func (_c *MockEventLogger_Errorf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call
func (*MockEventLogger_Errorf_Call) RunAndReturn ¶
func (_c *MockEventLogger_Errorf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call
type MockEventLogger_Expecter ¶
type MockEventLogger_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEventLogger_Expecter) Debug ¶
func (_e *MockEventLogger_Expecter) Debug(args ...interface{}) *MockEventLogger_Debug_Call
Debug is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Debugf ¶
func (_e *MockEventLogger_Expecter) Debugf(format interface{}, args ...interface{}) *MockEventLogger_Debugf_Call
Debugf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockEventLogger_Expecter) Error ¶
func (_e *MockEventLogger_Expecter) Error(args ...interface{}) *MockEventLogger_Error_Call
Error is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Errorf ¶
func (_e *MockEventLogger_Expecter) Errorf(format interface{}, args ...interface{}) *MockEventLogger_Errorf_Call
Errorf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockEventLogger_Expecter) Fatal ¶
func (_e *MockEventLogger_Expecter) Fatal(args ...interface{}) *MockEventLogger_Fatal_Call
Fatal is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Fatalf ¶
func (_e *MockEventLogger_Expecter) Fatalf(format interface{}, args ...interface{}) *MockEventLogger_Fatalf_Call
Fatalf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockEventLogger_Expecter) Info ¶
func (_e *MockEventLogger_Expecter) Info(args ...interface{}) *MockEventLogger_Info_Call
Info is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Infof ¶
func (_e *MockEventLogger_Expecter) Infof(format interface{}, args ...interface{}) *MockEventLogger_Infof_Call
Infof is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockEventLogger_Expecter) Panic ¶
func (_e *MockEventLogger_Expecter) Panic(args ...interface{}) *MockEventLogger_Panic_Call
Panic is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Panicf ¶
func (_e *MockEventLogger_Expecter) Panicf(format interface{}, args ...interface{}) *MockEventLogger_Panicf_Call
Panicf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockEventLogger_Expecter) Warn ¶
func (_e *MockEventLogger_Expecter) Warn(args ...interface{}) *MockEventLogger_Warn_Call
Warn is a helper method to define mock.On call
- args ...interface{}
func (*MockEventLogger_Expecter) Warnf ¶
func (_e *MockEventLogger_Expecter) Warnf(format interface{}, args ...interface{}) *MockEventLogger_Warnf_Call
Warnf is a helper method to define mock.On call
- format string
- args ...interface{}
type MockEventLogger_Fatal_Call ¶
MockEventLogger_Fatal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatal'
func (*MockEventLogger_Fatal_Call) Return ¶
func (_c *MockEventLogger_Fatal_Call) Return() *MockEventLogger_Fatal_Call
func (*MockEventLogger_Fatal_Call) Run ¶
func (_c *MockEventLogger_Fatal_Call) Run(run func(args ...interface{})) *MockEventLogger_Fatal_Call
func (*MockEventLogger_Fatal_Call) RunAndReturn ¶
func (_c *MockEventLogger_Fatal_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Fatal_Call
type MockEventLogger_Fatalf_Call ¶
MockEventLogger_Fatalf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatalf'
func (*MockEventLogger_Fatalf_Call) Return ¶
func (_c *MockEventLogger_Fatalf_Call) Return() *MockEventLogger_Fatalf_Call
func (*MockEventLogger_Fatalf_Call) Run ¶
func (_c *MockEventLogger_Fatalf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call
func (*MockEventLogger_Fatalf_Call) RunAndReturn ¶
func (_c *MockEventLogger_Fatalf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call
type MockEventLogger_Info_Call ¶
MockEventLogger_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*MockEventLogger_Info_Call) Return ¶
func (_c *MockEventLogger_Info_Call) Return() *MockEventLogger_Info_Call
func (*MockEventLogger_Info_Call) Run ¶
func (_c *MockEventLogger_Info_Call) Run(run func(args ...interface{})) *MockEventLogger_Info_Call
func (*MockEventLogger_Info_Call) RunAndReturn ¶
func (_c *MockEventLogger_Info_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Info_Call
type MockEventLogger_Infof_Call ¶
MockEventLogger_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'
func (*MockEventLogger_Infof_Call) Return ¶
func (_c *MockEventLogger_Infof_Call) Return() *MockEventLogger_Infof_Call
func (*MockEventLogger_Infof_Call) Run ¶
func (_c *MockEventLogger_Infof_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call
func (*MockEventLogger_Infof_Call) RunAndReturn ¶
func (_c *MockEventLogger_Infof_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call
type MockEventLogger_Panic_Call ¶
MockEventLogger_Panic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Panic'
func (*MockEventLogger_Panic_Call) Return ¶
func (_c *MockEventLogger_Panic_Call) Return() *MockEventLogger_Panic_Call
func (*MockEventLogger_Panic_Call) Run ¶
func (_c *MockEventLogger_Panic_Call) Run(run func(args ...interface{})) *MockEventLogger_Panic_Call
func (*MockEventLogger_Panic_Call) RunAndReturn ¶
func (_c *MockEventLogger_Panic_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Panic_Call
type MockEventLogger_Panicf_Call ¶
MockEventLogger_Panicf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Panicf'
func (*MockEventLogger_Panicf_Call) Return ¶
func (_c *MockEventLogger_Panicf_Call) Return() *MockEventLogger_Panicf_Call
func (*MockEventLogger_Panicf_Call) Run ¶
func (_c *MockEventLogger_Panicf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call
func (*MockEventLogger_Panicf_Call) RunAndReturn ¶
func (_c *MockEventLogger_Panicf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call
type MockEventLogger_Warn_Call ¶
MockEventLogger_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'
func (*MockEventLogger_Warn_Call) Return ¶
func (_c *MockEventLogger_Warn_Call) Return() *MockEventLogger_Warn_Call
func (*MockEventLogger_Warn_Call) Run ¶
func (_c *MockEventLogger_Warn_Call) Run(run func(args ...interface{})) *MockEventLogger_Warn_Call
func (*MockEventLogger_Warn_Call) RunAndReturn ¶
func (_c *MockEventLogger_Warn_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Warn_Call
type MockEventLogger_Warnf_Call ¶
MockEventLogger_Warnf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warnf'
func (*MockEventLogger_Warnf_Call) Return ¶
func (_c *MockEventLogger_Warnf_Call) Return() *MockEventLogger_Warnf_Call
func (*MockEventLogger_Warnf_Call) Run ¶
func (_c *MockEventLogger_Warnf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Warnf_Call
func (*MockEventLogger_Warnf_Call) RunAndReturn ¶
func (_c *MockEventLogger_Warnf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Warnf_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 (_mock *MockIpniFinder) Find(context1 context.Context, multihash1 multihash.Multihash) (*model.FindResponse, error)
Find provides a mock function for the type MockIpniFinder
type MockIpniFinder_Expecter ¶
type MockIpniFinder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIpniFinder_Expecter) Find ¶
func (_e *MockIpniFinder_Expecter) Find(context1 interface{}, multihash1 interface{}) *MockIpniFinder_Find_Call
Find is a helper method to define mock.On call
- context1 context.Context
- multihash1 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(findResponse *model.FindResponse, err error) *MockIpniFinder_Find_Call
func (*MockIpniFinder_Find_Call) Run ¶
func (_c *MockIpniFinder_Find_Call) Run(run func(context1 context.Context, multihash1 multihash.Multihash)) *MockIpniFinder_Find_Call
func (*MockIpniFinder_Find_Call) RunAndReturn ¶
func (_c *MockIpniFinder_Find_Call) RunAndReturn(run func(context1 context.Context, multihash1 multihash.Multihash) (*model.FindResponse, error)) *MockIpniFinder_Find_Call
type MockIpniPublisher ¶
MockIpniPublisher is an autogenerated mock type for the AsyncPublisher 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
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(err error) *MockIpniPublisher_Publish_Call