testharness

package
v1.28.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0, MIT Imports: 28 Imported by: 0

Documentation

Index

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 {
}

func (*MeshCreatorStub) Connect added in v1.20.0

func (m *MeshCreatorStub) Connect(context.Context) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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