Documentation ¶
Index ¶
- type MeshCreatorStub
- type StorageHarness
- func (h *StorageHarness) CreateNewProvider(t *testing.T, ctx context.Context, td *shared_testutil.Libp2pTestData) storagemarket.StorageProvider
- func (h *StorageHarness) ProposeStorageDeal(t *testing.T, dataRef *storagemarket.DataRef, fastRetrieval, verifiedDeal bool) *storagemarket.ProposeStorageDealResult
- func (h *StorageHarness) WaitForClientEvent(wg *sync.WaitGroup, waitEvent storagemarket.ClientEvent)
- func (h *StorageHarness) WaitForProviderEvent(wg *sync.WaitGroup, waitEvent storagemarket.ProviderEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeshCreatorStub ¶ added in v1.20.0
type MeshCreatorStub struct { }
type StorageHarness ¶
type StorageHarness struct { *dependencies.StorageDependencies PayloadCid cid.Cid Client storagemarket.StorageClient Provider storagemarket.StorageProvider Data bstore.Blockstore ReferenceProvider *shared_testutil.MockIndexProvider }
func NewHarness ¶
func NewHarness(t *testing.T, ctx context.Context, useStore bool, cd testnodes.DelayFakeCommonNode, pd testnodes.DelayFakeCommonNode, disableNewDeals bool, fName ...string) *StorageHarness
func NewHarnessWithTestData ¶
func NewHarnessWithTestData(t *testing.T, td *shared_testutil.Libp2pTestData, deps *dependencies.StorageDependencies, useStore bool, disableNewDeals bool, files ...string) *StorageHarness
func (*StorageHarness) CreateNewProvider ¶ added in v0.9.0
func (h *StorageHarness) CreateNewProvider(t *testing.T, ctx context.Context, td *shared_testutil.Libp2pTestData) storagemarket.StorageProvider
func (*StorageHarness) ProposeStorageDeal ¶
func (h *StorageHarness) ProposeStorageDeal(t *testing.T, dataRef *storagemarket.DataRef, fastRetrieval, verifiedDeal bool) *storagemarket.ProposeStorageDealResult
func (*StorageHarness) WaitForClientEvent ¶
func (h *StorageHarness) WaitForClientEvent(wg *sync.WaitGroup, waitEvent storagemarket.ClientEvent)
func (*StorageHarness) WaitForProviderEvent ¶
func (h *StorageHarness) WaitForProviderEvent(wg *sync.WaitGroup, waitEvent storagemarket.ProviderEvent)
Click to show internal directories.
Click to hide internal directories.