testharness

package
v0.0.0-...-f311442 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 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

type MeshCreatorStub struct {
}

func (*MeshCreatorStub) Connect

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

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