mocks

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState

func NewState(t mockConstructorTestingTNewState) *State

NewState creates a new instance of State. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*State) ActorKey added in v0.11.0

func (_m *State) ActorKey() string

ActorKey provides a mock function with given fields:

func (*State) ActorVersion added in v0.11.0

func (_m *State) ActorVersion() actors.Version

ActorVersion provides a mock function with given fields:

func (*State) AvailableBalance

func (_m *State) AvailableBalance(_a0 big.Int) (big.Int, error)

AvailableBalance provides a mock function with given fields: _a0

func (*State) Code

func (_m *State) Code() cid.Cid

Code provides a mock function with given fields:

func (*State) DeadlineCronActive

func (_m *State) DeadlineCronActive() (bool, error)

DeadlineCronActive provides a mock function with given fields:

func (*State) DeadlineInfo

func (_m *State) DeadlineInfo(epoch abi.ChainEpoch) (*dline.Info, error)

DeadlineInfo provides a mock function with given fields: epoch

func (*State) DeadlinesChanged

func (_m *State) DeadlinesChanged(_a0 miner.State) (bool, error)

DeadlinesChanged provides a mock function with given fields: _a0

func (*State) DecodeSectorOnChainInfo

func (_m *State) DecodeSectorOnChainInfo(_a0 *typegen.Deferred) (v13miner.SectorOnChainInfo, error)

DecodeSectorOnChainInfo provides a mock function with given fields: _a0

func (*State) DecodeSectorPreCommitOnChainInfo

func (_m *State) DecodeSectorPreCommitOnChainInfo(_a0 *typegen.Deferred) (v9miner.SectorPreCommitOnChainInfo, error)

DecodeSectorPreCommitOnChainInfo provides a mock function with given fields: _a0

func (*State) DecodeSectorPreCommitOnChainInfoToV8 added in v0.13.0

func (_m *State) DecodeSectorPreCommitOnChainInfoToV8(_a0 *typegen.Deferred) (v8miner.SectorPreCommitOnChainInfo, error)

DecodeSectorPreCommitOnChainInfoToV8 provides a mock function with given fields: _a0

func (*State) EraseAllUnproven added in v0.11.0

func (_m *State) EraseAllUnproven() error

EraseAllUnproven provides a mock function with given fields:

func (*State) FeeDebt

func (_m *State) FeeDebt() (big.Int, error)

FeeDebt provides a mock function with given fields:

func (*State) FindSector

func (_m *State) FindSector(_a0 abi.SectorNumber) (*miner.SectorLocation, error)

FindSector provides a mock function with given fields: _a0

func (*State) ForEachDeadline

func (_m *State) ForEachDeadline(cb func(uint64, miner.Deadline) error) error

ForEachDeadline provides a mock function with given fields: cb

func (*State) ForEachPrecommittedSector

func (_m *State) ForEachPrecommittedSector(_a0 func(v9miner.SectorPreCommitOnChainInfo) error) error

ForEachPrecommittedSector provides a mock function with given fields: _a0

func (*State) ForEachPrecommittedSectorV8 added in v0.13.0

func (_m *State) ForEachPrecommittedSectorV8(_a0 func(v8miner.SectorPreCommitOnChainInfo) error) error

ForEachPrecommittedSectorV8 provides a mock function with given fields: _a0

func (*State) GetAllocatedSectors

func (_m *State) GetAllocatedSectors() (*bitfield.BitField, error)

GetAllocatedSectors provides a mock function with given fields:

func (*State) GetPrecommittedSector

func (_m *State) GetPrecommittedSector(_a0 abi.SectorNumber) (*v9miner.SectorPreCommitOnChainInfo, error)

GetPrecommittedSector provides a mock function with given fields: _a0

func (*State) GetProvingPeriodStart

func (_m *State) GetProvingPeriodStart() (abi.ChainEpoch, error)

GetProvingPeriodStart provides a mock function with given fields:

func (*State) GetSector

func (_m *State) GetSector(_a0 abi.SectorNumber) (*v13miner.SectorOnChainInfo, error)

GetSector provides a mock function with given fields: _a0

func (*State) GetSectorExpiration

func (_m *State) GetSectorExpiration(_a0 abi.SectorNumber) (*miner.SectorExpiration, error)

GetSectorExpiration provides a mock function with given fields: _a0

func (*State) GetState

func (_m *State) GetState() interface{}

GetState provides a mock function with given fields:

func (*State) Info

func (_m *State) Info() (v9miner.MinerInfo, error)

Info provides a mock function with given fields:

func (*State) IsAllocated

func (_m *State) IsAllocated(_a0 abi.SectorNumber) (bool, error)

IsAllocated provides a mock function with given fields: _a0

func (*State) LoadDeadline

func (_m *State) LoadDeadline(idx uint64) (miner.Deadline, error)

LoadDeadline provides a mock function with given fields: idx

func (*State) LoadSectors

func (_m *State) LoadSectors(sectorNos *bitfield.BitField) ([]*v13miner.SectorOnChainInfo, error)

LoadSectors provides a mock function with given fields: sectorNos

func (*State) LockedFunds

func (_m *State) LockedFunds() (miner.LockedFunds, error)

LockedFunds provides a mock function with given fields:

func (*State) MarshalCBOR

func (_m *State) MarshalCBOR(w io.Writer) error

MarshalCBOR provides a mock function with given fields: w

func (*State) MinerInfoChanged

func (_m *State) MinerInfoChanged(_a0 miner.State) (bool, error)

MinerInfoChanged provides a mock function with given fields: _a0

func (*State) NumDeadlines

func (_m *State) NumDeadlines() (uint64, error)

NumDeadlines provides a mock function with given fields:

func (*State) NumLiveSectors

func (_m *State) NumLiveSectors() (uint64, error)

NumLiveSectors provides a mock function with given fields:

func (*State) PrecommitsMap added in v0.11.0

func (_m *State) PrecommitsMap() (adt.Map, error)

PrecommitsMap provides a mock function with given fields:

func (*State) PrecommitsMapBitWidth added in v0.11.0

func (_m *State) PrecommitsMapBitWidth() int

PrecommitsMapBitWidth provides a mock function with given fields:

func (*State) PrecommitsMapHashFunction added in v0.11.0

func (_m *State) PrecommitsMapHashFunction() func([]byte) []byte

PrecommitsMapHashFunction provides a mock function with given fields:

func (*State) SectorsAmtBitwidth

func (_m *State) SectorsAmtBitwidth() int

SectorsAmtBitwidth provides a mock function with given fields:

func (*State) SectorsArray added in v0.11.0

func (_m *State) SectorsArray() (adt.Array, error)

SectorsArray provides a mock function with given fields:

func (*State) UnallocatedSectorNumbers

func (_m *State) UnallocatedSectorNumbers(count int) ([]abi.SectorNumber, error)

UnallocatedSectorNumbers provides a mock function with given fields: count

func (*State) VestedFunds

func (_m *State) VestedFunds(_a0 abi.ChainEpoch) (big.Int, error)

VestedFunds provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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