Documentation
¶
Index ¶
- Variables
- func AccountValueTransferFromKnownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferFromUnknownToKnownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferFromUnknownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferOverBalanceNonZero(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferOverBalanceZero(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferSuccess(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferToSelf(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferZeroFunds(t *testing.T, factory Factories, expGasUsed uint64)
- func CreateStorageMinerAndUpdatePeerID(t testing.TB, factory Factories)
- func RequireIntPeerID(t testing.TB, i int64) peer.ID
- type Factories
- type StateDriver
- func (d *StateDriver) AssertBalance(addr address.Address, expected uint64)
- func (d *StateDriver) AssertMinerInfo(miner, expected strgminr.MinerInfo)
- func (d *StateDriver) AssertReceipt(receipt, expected chain.MessageReceipt)
- func (d *StateDriver) NewAccountActor(balanceAttoFil uint64) address.Address
- func (d *StateDriver) NewAccountActorBigBalance(balanceAttoFil types.BigInt) address.Address
- func (d *StateDriver) State() state.Wrapper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.