test

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0, MIT Imports: 13 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) 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