 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func FullNodeAndMiner(t *testing.T) (*kit.TestFullNode, *kit.TestMiner)
- func SetLogLevel()
- 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, ...) (*api.ProviderDealRejectionInfo, error)
- func (f *TestFramework) Retrieve(ctx context.Context, t *testing.T, deal *cid.Cid, root cid.Cid, carExport bool) 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 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) (*api.ProviderDealRejectionInfo, error)
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.