Documentation ¶
Index ¶
- type MockIPFSStorage
- type MockIPFSStorage_Add_Call
- func (_c *MockIPFSStorage_Add_Call) Return(_a0 string, _a1 error) *MockIPFSStorage_Add_Call
- func (_c *MockIPFSStorage_Add_Call) Run(run func(payload io.Reader, opts ...func(*shell.RequestBuilder) error)) *MockIPFSStorage_Add_Call
- func (_c *MockIPFSStorage_Add_Call) RunAndReturn(run func(io.Reader, ...func(*shell.RequestBuilder) error) (string, error)) *MockIPFSStorage_Add_Call
- type MockIPFSStorage_Cat_Call
- func (_c *MockIPFSStorage_Cat_Call) Return(_a0 io.ReadCloser, _a1 error) *MockIPFSStorage_Cat_Call
- func (_c *MockIPFSStorage_Cat_Call) Run(run func(cid string)) *MockIPFSStorage_Cat_Call
- func (_c *MockIPFSStorage_Cat_Call) RunAndReturn(run func(string) (io.ReadCloser, error)) *MockIPFSStorage_Cat_Call
- type MockIPFSStorage_Expecter
- type MockIPFSStorage_Version_Call
- func (_c *MockIPFSStorage_Version_Call) Return(_a0 string, _a1 string, _a2 error) *MockIPFSStorage_Version_Call
- func (_c *MockIPFSStorage_Version_Call) Run(run func()) *MockIPFSStorage_Version_Call
- func (_c *MockIPFSStorage_Version_Call) RunAndReturn(run func() (string, string, error)) *MockIPFSStorage_Version_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIPFSStorage ¶
MockIPFSStorage is an autogenerated mock type for the IPFSStorage type
func NewMockIPFSStorage ¶
func NewMockIPFSStorage(t interface { mock.TestingT Cleanup(func()) }) *MockIPFSStorage
NewMockIPFSStorage creates a new instance of MockIPFSStorage. 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 (*MockIPFSStorage) Add ¶
func (_m *MockIPFSStorage) Add(payload io.Reader, opts ...func(*shell.RequestBuilder) error) (string, error)
Add provides a mock function with given fields: payload, opts
func (*MockIPFSStorage) Cat ¶
func (_m *MockIPFSStorage) Cat(cid string) (io.ReadCloser, error)
Cat provides a mock function with given fields: cid
func (*MockIPFSStorage) EXPECT ¶
func (_m *MockIPFSStorage) EXPECT() *MockIPFSStorage_Expecter
type MockIPFSStorage_Add_Call ¶
MockIPFSStorage_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*MockIPFSStorage_Add_Call) Return ¶
func (_c *MockIPFSStorage_Add_Call) Return(_a0 string, _a1 error) *MockIPFSStorage_Add_Call
func (*MockIPFSStorage_Add_Call) Run ¶
func (_c *MockIPFSStorage_Add_Call) Run(run func(payload io.Reader, opts ...func(*shell.RequestBuilder) error)) *MockIPFSStorage_Add_Call
func (*MockIPFSStorage_Add_Call) RunAndReturn ¶
func (_c *MockIPFSStorage_Add_Call) RunAndReturn(run func(io.Reader, ...func(*shell.RequestBuilder) error) (string, error)) *MockIPFSStorage_Add_Call
type MockIPFSStorage_Cat_Call ¶
MockIPFSStorage_Cat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cat'
func (*MockIPFSStorage_Cat_Call) Return ¶
func (_c *MockIPFSStorage_Cat_Call) Return(_a0 io.ReadCloser, _a1 error) *MockIPFSStorage_Cat_Call
func (*MockIPFSStorage_Cat_Call) Run ¶
func (_c *MockIPFSStorage_Cat_Call) Run(run func(cid string)) *MockIPFSStorage_Cat_Call
func (*MockIPFSStorage_Cat_Call) RunAndReturn ¶
func (_c *MockIPFSStorage_Cat_Call) RunAndReturn(run func(string) (io.ReadCloser, error)) *MockIPFSStorage_Cat_Call
type MockIPFSStorage_Expecter ¶
type MockIPFSStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIPFSStorage_Expecter) Add ¶
func (_e *MockIPFSStorage_Expecter) Add(payload interface{}, opts ...interface{}) *MockIPFSStorage_Add_Call
Add is a helper method to define mock.On call
- payload io.Reader
- opts ...func(*shell.RequestBuilder) error
func (*MockIPFSStorage_Expecter) Cat ¶
func (_e *MockIPFSStorage_Expecter) Cat(cid interface{}) *MockIPFSStorage_Cat_Call
Cat is a helper method to define mock.On call
- cid string
func (*MockIPFSStorage_Expecter) Version ¶
func (_e *MockIPFSStorage_Expecter) Version() *MockIPFSStorage_Version_Call
Version is a helper method to define mock.On call
type MockIPFSStorage_Version_Call ¶
MockIPFSStorage_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'
func (*MockIPFSStorage_Version_Call) Return ¶
func (_c *MockIPFSStorage_Version_Call) Return(_a0 string, _a1 string, _a2 error) *MockIPFSStorage_Version_Call
func (*MockIPFSStorage_Version_Call) Run ¶
func (_c *MockIPFSStorage_Version_Call) Run(run func()) *MockIPFSStorage_Version_Call
func (*MockIPFSStorage_Version_Call) RunAndReturn ¶
func (_c *MockIPFSStorage_Version_Call) RunAndReturn(run func() (string, string, error)) *MockIPFSStorage_Version_Call