framework

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 64 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logging.Logger("boosttest")

Functions

func FullNodeAndMiner

func FullNodeAndMiner(t *testing.T) (*kit.TestFullNode, *kit.TestMiner)

func SetLogLevel

func SetLogLevel()

Types

type DealResult added in v1.5.1

type DealResult struct {
	DealParams types.DealParams
	Result     *api.ProviderDealRejectionInfo
}

type TestFramework

type TestFramework struct {
	Stop func()

	HomeDir       string
	Client        *boostclient.StorageClient
	Boost         api.Boost
	FullNode      *kit.TestFullNode
	LotusMiner    *kit.TestMiner
	ClientAddr    address.Address
	MinerAddr     address.Address
	DefaultWallet address.Address
	// contains filtered or unexported fields
}

func NewTestFramework

func NewTestFramework(ctx context.Context, t *testing.T) *TestFramework

func (*TestFramework) AddClientProviderBalance

func (f *TestFramework) AddClientProviderBalance(bal abi.TokenAmount) error

Add funds escrow in StorageMarketActor for both client and provider

func (*TestFramework) DefaultMarketsV1DealParams

func (f *TestFramework) DefaultMarketsV1DealParams() lapi.StartDealParams

func (*TestFramework) ExtractFileFromCAR

func (f *TestFramework) ExtractFileFromCAR(ctx context.Context, t *testing.T, file *os.File) string

func (*TestFramework) MakeDummyDeal

func (f *TestFramework) MakeDummyDeal(dealUuid uuid.UUID, carFilepath string, rootCid cid.Cid, url string, isOffline bool) (*DealResult, error)

func (*TestFramework) Retrieve

func (f *TestFramework) Retrieve(ctx context.Context, t *testing.T, deal *cid.Cid, root cid.Cid, carExport bool) string

func (*TestFramework) RetrieveDirect added in v1.5.1

func (f *TestFramework) RetrieveDirect(ctx context.Context, t *testing.T, root cid.Cid, pieceCid *cid.Cid, carExport bool) string

func (*TestFramework) Start

func (f *TestFramework) Start() error

func (*TestFramework) WaitDealSealed

func (f *TestFramework) WaitDealSealed(ctx context.Context, deal *cid.Cid) error

func (*TestFramework) WaitForDealAddedToSector

func (f *TestFramework) WaitForDealAddedToSector(dealUuid uuid.UUID) error

func (*TestFramework) WaitMsg

func (f *TestFramework) WaitMsg(mcid cid.Cid) error

Jump to

Keyboard shortcuts

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