suites

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalNetworkBalance = types.NewInt(types.NewInt(1).Mul(types.NewInt(totalFilecoin).Int, types.NewInt(0).SetUint64(filecoinPrecision)).Uint64())
)

Functions

func AccountValueTransferFromKnownToUnknownAccount

func AccountValueTransferFromKnownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferFromUnknownToKnownAccount

func AccountValueTransferFromUnknownToKnownAccount(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferFromUnknownToUnknownAccount

func AccountValueTransferFromUnknownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferOverBalanceNonZero

func AccountValueTransferOverBalanceNonZero(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferOverBalanceZero

func AccountValueTransferOverBalanceZero(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferSuccess

func AccountValueTransferSuccess(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferToSelf

func AccountValueTransferToSelf(t *testing.T, factory Factories, expGasUsed uint64)

func AccountValueTransferZeroFunds

func AccountValueTransferZeroFunds(t *testing.T, factory Factories, expGasUsed uint64)

func CreateStorageMinerAndUpdatePeerID

func CreateStorageMinerAndUpdatePeerID(t testing.TB, factory Factories)

func RequireIntPeerID

func RequireIntPeerID(t testing.TB, i int64) peer.ID

RequireIntPeerID takes in an integer and creates a unique peer id for it.

Types

type Factories

type Factories interface {
	NewState() state.Wrapper
	NewMessageFactory(wrapper state.Wrapper) chain.MessageFactory

	chain.Applier
}

Factories wraps up all the implementation-specific integration points.

type StateDriver

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

StateDriver mutates and inspects a state.

func NewStateDriver

func NewStateDriver(tb testing.TB, w state.Wrapper) *StateDriver

NewStateDriver creates a new state driver for a state.

func (*StateDriver) AssertBalance

func (d *StateDriver) AssertBalance(addr address.Address, expected uint64)

AssertBalance checks an actor has an expected balance.

func (*StateDriver) AssertMinerInfo

func (d *StateDriver) AssertMinerInfo(miner, expected strgminr.MinerInfo)

func (*StateDriver) AssertReceipt

func (d *StateDriver) AssertReceipt(receipt, expected chain.MessageReceipt)

AssertReceipt checks that a receipt is not nill and has values equal to `expected`.

func (*StateDriver) NewAccountActor

func (d *StateDriver) NewAccountActor(balanceAttoFil uint64) address.Address

NewAccountActor installs a new account actor, returning the address.

func (*StateDriver) NewAccountActorBigBalance

func (d *StateDriver) NewAccountActorBigBalance(balanceAttoFil types.BigInt) address.Address

func (*StateDriver) State

func (d *StateDriver) State() state.Wrapper

State returns the state.

Jump to

Keyboard shortcuts

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