Documentation ¶
Index ¶
- Variables
- func FullNodeAndMiner(t *testing.T) (*kit.TestFullNode, *kit.TestMiner)
- func SetLogLevel()
- type DealResult
- type TestFramework
- func (f *TestFramework) AddClientProviderBalance(bal abi.TokenAmount) error
- func (f *TestFramework) DefaultMarketsV1DealParams() lapi.StartDealParams
- func (f *TestFramework) ExtractFileFromCAR(ctx context.Context, t *testing.T, file *os.File) string
- func (f *TestFramework) MakeDummyDeal(dealUuid uuid.UUID, carFilepath string, rootCid cid.Cid, url string, ...) (*DealResult, error)
- func (f *TestFramework) Retrieve(ctx context.Context, t *testing.T, deal *cid.Cid, root cid.Cid, carExport bool) string
- func (f *TestFramework) RetrieveDirect(ctx context.Context, t *testing.T, root cid.Cid, pieceCid *cid.Cid, ...) string
- func (f *TestFramework) Start() error
- func (f *TestFramework) WaitDealSealed(ctx context.Context, deal *cid.Cid) error
- func (f *TestFramework) WaitForDealAddedToSector(dealUuid uuid.UUID) error
- func (f *TestFramework) WaitMsg(mcid cid.Cid) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logging.Logger("boosttest")
Functions ¶
func FullNodeAndMiner ¶
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 (*TestFramework) MakeDummyDeal ¶
func (f *TestFramework) MakeDummyDeal(dealUuid uuid.UUID, carFilepath string, rootCid cid.Cid, url string, isOffline bool) (*DealResult, error)
func (*TestFramework) RetrieveDirect ¶ added in v1.5.1
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
Click to show internal directories.
Click to hide internal directories.