Documentation
¶
Index ¶
- Variables
- func NewTestConsensusContext(t testing.TB) context.Context
- func NewTestConsensusContextWithChainID(t testing.TB, chainID ids.ID) context.Context
- func NewTestRuntime(t testing.TB, chainID ids.ID) *runtime.Runtime
- func NewTestValidatorState() runtime.ValidatorState
- func NewTestValidatorStateFromBase(baseState *validatorstest.State) runtime.ValidatorState
- type Key
Constants ¶
This section is empty.
Variables ¶
var EVMTestChainID = ids.GenerateTestID()
EVMTestChainID is a evm specific chain ID for testing
Functions ¶
func NewTestConsensusContext ¶ added in v0.8.6
NewTestConsensusContext returns a context.Context with runtime properly configured for testing.
func NewTestConsensusContextWithChainID ¶ added in v0.8.6
NewTestConsensusContextWithChainID returns a context.Context with runtime properly configured for testing with a specific chain ID.
func NewTestRuntime ¶ added in v0.8.33
NewTestRuntime creates a new Runtime suitable for testing with the given chain ID
func NewTestValidatorState ¶ added in v0.8.4
func NewTestValidatorState() runtime.ValidatorState
NewTestValidatorState creates a new test validator state
func NewTestValidatorStateFromBase ¶ added in v0.8.8
func NewTestValidatorStateFromBase(baseState *validatorstest.State) runtime.ValidatorState
NewTestValidatorStateFromBase creates a testValidatorState that wraps an existing validatorstest.State This is useful when you need to use a specific validatorstest.State with custom functions but still implement the runtime.ValidatorState interface.