extmocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDynamoDBQueryClient

type MockDynamoDBQueryClient struct {
	mock.Mock
}

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 (*MockDynamoDBQueryClient) Query

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

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

func (*MockDynamoDBQueryClient_Query_Call) RunAndReturn

type MockIpniFinder

type MockIpniFinder struct {
	mock.Mock
}

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 (*MockIpniFinder) Find

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

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

func (*MockIpniFinder_Find_Call) RunAndReturn

type MockIpniPublisher

type MockIpniPublisher struct {
	mock.Mock
}

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 (*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

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

Jump to

Keyboard shortcuts

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