mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIPFSStorage

type MockIPFSStorage struct {
	mock.Mock
}

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 (*MockIPFSStorage) Version

func (_m *MockIPFSStorage) Version() (string, string, error)

Version provides a mock function with given fields:

type MockIPFSStorage_Add_Call

type MockIPFSStorage_Add_Call struct {
	*mock.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 (*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

type MockIPFSStorage_Cat_Call

type MockIPFSStorage_Cat_Call struct {
	*mock.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 (*MockIPFSStorage_Cat_Call) Run

func (*MockIPFSStorage_Cat_Call) RunAndReturn

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

Version is a helper method to define mock.On call

type MockIPFSStorage_Version_Call

type MockIPFSStorage_Version_Call struct {
	*mock.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 (*MockIPFSStorage_Version_Call) Run

func (*MockIPFSStorage_Version_Call) RunAndReturn

Jump to

Keyboard shortcuts

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