test

package
v1.17.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDealAMT

func CreateDealAMT(ctx context.Context, t *testing.T, store adt.Store, deals map[abi.DealID]*market.DealState) cid.Cid

func CreateEmptyMarketState

func CreateEmptyMarketState(t *testing.T, store adt.Store) *market.State

func MockTipset

func MockTipset(minerAddr address.Address, timestamp uint64) (*types.TipSet, error)

Types

type MockAPI

type MockAPI struct {
	// contains filtered or unexported fields
}

func NewMockAPI

func NewMockAPI(bs blockstore.Blockstore) *MockAPI

func (*MockAPI) ChainHasObj

func (m *MockAPI) ChainHasObj(ctx context.Context, c cid.Cid) (bool, error)

func (*MockAPI) ChainPutObj added in v1.16.0

func (m *MockAPI) ChainPutObj(ctx context.Context, block blocks.Block) error

func (*MockAPI) ChainReadObj

func (m *MockAPI) ChainReadObj(ctx context.Context, c cid.Cid) ([]byte, error)

func (*MockAPI) ResetCallCounts

func (m *MockAPI) ResetCallCounts()

func (*MockAPI) SetActor

func (m *MockAPI) SetActor(tsk types.TipSetKey, act *types.Actor)

func (*MockAPI) StateGetActor

func (m *MockAPI) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error)

func (*MockAPI) StateGetActorCallCount

func (m *MockAPI) StateGetActorCallCount() int

Jump to

Keyboard shortcuts

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