mocks

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContentClaimsStore

type MockContentClaimsStore struct {
	mock.Mock
}

MockContentClaimsStore is an autogenerated mock type for the ContentClaimsStore type

func NewMockContentClaimsStore

func NewMockContentClaimsStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContentClaimsStore

NewMockContentClaimsStore creates a new instance of MockContentClaimsStore. 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 (*MockContentClaimsStore) EXPECT

func (*MockContentClaimsStore) Get

Get provides a mock function with given fields: ctx, key

func (*MockContentClaimsStore) Put

Put provides a mock function with given fields: ctx, key, value

type MockContentClaimsStore_Expecter

type MockContentClaimsStore_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockContentClaimsStore_Expecter) Get

func (_e *MockContentClaimsStore_Expecter) Get(ctx interface{}, key interface{}) *MockContentClaimsStore_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key ipld.Link

func (*MockContentClaimsStore_Expecter) Put

func (_e *MockContentClaimsStore_Expecter) Put(ctx interface{}, key interface{}, value interface{}) *MockContentClaimsStore_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • key ipld.Link
  • value delegation.Delegation

type MockContentClaimsStore_Get_Call

type MockContentClaimsStore_Get_Call struct {
	*mock.Call
}

MockContentClaimsStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockContentClaimsStore_Get_Call) Return

func (*MockContentClaimsStore_Get_Call) Run

func (*MockContentClaimsStore_Get_Call) RunAndReturn

type MockContentClaimsStore_Put_Call

type MockContentClaimsStore_Put_Call struct {
	*mock.Call
}

MockContentClaimsStore_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*MockContentClaimsStore_Put_Call) Return

func (*MockContentClaimsStore_Put_Call) Run

func (*MockContentClaimsStore_Put_Call) RunAndReturn

type MockContentToClaimsMapper

type MockContentToClaimsMapper struct {
	mock.Mock
}

MockContentToClaimsMapper is an autogenerated mock type for the ContentToClaimsMapper type

func NewMockContentToClaimsMapper

func NewMockContentToClaimsMapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContentToClaimsMapper

NewMockContentToClaimsMapper creates a new instance of MockContentToClaimsMapper. 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 (*MockContentToClaimsMapper) EXPECT

func (*MockContentToClaimsMapper) GetClaims

func (_m *MockContentToClaimsMapper) GetClaims(ctx context.Context, contentHash multihash.Multihash) ([]cid.Cid, error)

GetClaims provides a mock function with given fields: ctx, contentHash

type MockContentToClaimsMapper_Expecter

type MockContentToClaimsMapper_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockContentToClaimsMapper_Expecter) GetClaims

func (_e *MockContentToClaimsMapper_Expecter) GetClaims(ctx interface{}, contentHash interface{}) *MockContentToClaimsMapper_GetClaims_Call

GetClaims is a helper method to define mock.On call

  • ctx context.Context
  • contentHash multihash.Multihash

type MockContentToClaimsMapper_GetClaims_Call

type MockContentToClaimsMapper_GetClaims_Call struct {
	*mock.Call
}

MockContentToClaimsMapper_GetClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaims'

func (*MockContentToClaimsMapper_GetClaims_Call) Return

func (*MockContentToClaimsMapper_GetClaims_Call) Run

func (*MockContentToClaimsMapper_GetClaims_Call) RunAndReturn

type MockFinder

type MockFinder struct {
	mock.Mock
}

MockFinder is an autogenerated mock type for the Finder type

func NewMockFinder

func NewMockFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFinder

NewMockFinder creates a new instance of MockFinder. 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 (*MockFinder) EXPECT

func (_m *MockFinder) EXPECT() *MockFinder_Expecter

func (*MockFinder) Find

Find provides a mock function with given fields: _a0, _a1

type MockFinder_Expecter

type MockFinder_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockFinder_Expecter) Find

func (_e *MockFinder_Expecter) Find(_a0 interface{}, _a1 interface{}) *MockFinder_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 multihash.Multihash

type MockFinder_Find_Call

type MockFinder_Find_Call struct {
	*mock.Call
}

MockFinder_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*MockFinder_Find_Call) Return

func (*MockFinder_Find_Call) Run

func (*MockFinder_Find_Call) RunAndReturn

type MockLegacyClaimsFinder

type MockLegacyClaimsFinder struct {
	mock.Mock
}

MockLegacyClaimsFinder is an autogenerated mock type for the LegacyClaimsFinder type

func NewMockLegacyClaimsFinder

func NewMockLegacyClaimsFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLegacyClaimsFinder

NewMockLegacyClaimsFinder creates a new instance of MockLegacyClaimsFinder. 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 (*MockLegacyClaimsFinder) EXPECT

func (*MockLegacyClaimsFinder) Find

Find provides a mock function with given fields: ctx, contentHash

type MockLegacyClaimsFinder_Expecter

type MockLegacyClaimsFinder_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockLegacyClaimsFinder_Expecter) Find

func (_e *MockLegacyClaimsFinder_Expecter) Find(ctx interface{}, contentHash interface{}) *MockLegacyClaimsFinder_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • contentHash multihash.Multihash

type MockLegacyClaimsFinder_Find_Call

type MockLegacyClaimsFinder_Find_Call struct {
	*mock.Call
}

MockLegacyClaimsFinder_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*MockLegacyClaimsFinder_Find_Call) Return

func (*MockLegacyClaimsFinder_Find_Call) Run

func (*MockLegacyClaimsFinder_Find_Call) RunAndReturn

type MockProviderStore

type MockProviderStore struct {
	mock.Mock
}

MockProviderStore is an autogenerated mock type for the ProviderStore type

func NewMockProviderStore

func NewMockProviderStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderStore

NewMockProviderStore creates a new instance of MockProviderStore. 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 (*MockProviderStore) EXPECT

func (*MockProviderStore) Get

Get provides a mock function with given fields: ctx, key

func (*MockProviderStore) Set

func (_m *MockProviderStore) Set(ctx context.Context, key multihash.Multihash, value []model.ProviderResult, expires bool) error

Set provides a mock function with given fields: ctx, key, value, expires

func (*MockProviderStore) SetExpirable

func (_m *MockProviderStore) SetExpirable(ctx context.Context, key multihash.Multihash, expires bool) error

SetExpirable provides a mock function with given fields: ctx, key, expires

type MockProviderStore_Expecter

type MockProviderStore_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockProviderStore_Expecter) Get

func (_e *MockProviderStore_Expecter) Get(ctx interface{}, key interface{}) *MockProviderStore_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key multihash.Multihash

func (*MockProviderStore_Expecter) Set

func (_e *MockProviderStore_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expires interface{}) *MockProviderStore_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key multihash.Multihash
  • value []model.ProviderResult
  • expires bool

func (*MockProviderStore_Expecter) SetExpirable

func (_e *MockProviderStore_Expecter) SetExpirable(ctx interface{}, key interface{}, expires interface{}) *MockProviderStore_SetExpirable_Call

SetExpirable is a helper method to define mock.On call

  • ctx context.Context
  • key multihash.Multihash
  • expires bool

type MockProviderStore_Get_Call

type MockProviderStore_Get_Call struct {
	*mock.Call
}

MockProviderStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockProviderStore_Get_Call) Return

func (*MockProviderStore_Get_Call) Run

func (*MockProviderStore_Get_Call) RunAndReturn

type MockProviderStore_SetExpirable_Call

type MockProviderStore_SetExpirable_Call struct {
	*mock.Call
}

MockProviderStore_SetExpirable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetExpirable'

func (*MockProviderStore_SetExpirable_Call) Return

func (*MockProviderStore_SetExpirable_Call) Run

func (*MockProviderStore_SetExpirable_Call) RunAndReturn

type MockProviderStore_Set_Call

type MockProviderStore_Set_Call struct {
	*mock.Call
}

MockProviderStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'

func (*MockProviderStore_Set_Call) Return

func (*MockProviderStore_Set_Call) Run

func (*MockProviderStore_Set_Call) RunAndReturn

type MockPublisher

type MockPublisher struct {
	mock.Mock
}

MockPublisher is an autogenerated mock type for the Publisher type

func NewMockPublisher

func NewMockPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPublisher

NewMockPublisher creates a new instance of MockPublisher. 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 (*MockPublisher) EXPECT

func (_m *MockPublisher) EXPECT() *MockPublisher_Expecter

func (*MockPublisher) Publish

func (_m *MockPublisher) 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 MockPublisher_Expecter

type MockPublisher_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPublisher_Expecter) Publish

func (_e *MockPublisher_Expecter) Publish(ctx interface{}, provider interface{}, contextID interface{}, digests interface{}, meta interface{}) *MockPublisher_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 MockPublisher_Publish_Call

type MockPublisher_Publish_Call struct {
	*mock.Call
}

MockPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*MockPublisher_Publish_Call) Return

func (*MockPublisher_Publish_Call) Run

type MockQueryAPIClient

type MockQueryAPIClient struct {
	mock.Mock
}

MockQueryAPIClient is an autogenerated mock type for the QueryAPIClient type

func NewMockQueryAPIClient

func NewMockQueryAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockQueryAPIClient

NewMockQueryAPIClient creates a new instance of MockQueryAPIClient. 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 (*MockQueryAPIClient) EXPECT

func (*MockQueryAPIClient) Query

Query provides a mock function with given fields: _a0, _a1, _a2

type MockQueryAPIClient_Expecter

type MockQueryAPIClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockQueryAPIClient_Expecter) Query

func (_e *MockQueryAPIClient_Expecter) Query(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockQueryAPIClient_Query_Call

Query is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *dynamodb.QueryInput
  • _a2 ...func(*dynamodb.Options)

type MockQueryAPIClient_Query_Call

type MockQueryAPIClient_Query_Call struct {
	*mock.Call
}

MockQueryAPIClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*MockQueryAPIClient_Query_Call) Return

func (*MockQueryAPIClient_Query_Call) Run

func (*MockQueryAPIClient_Query_Call) RunAndReturn

Jump to

Keyboard shortcuts

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