Documentation ¶
Overview ¶
Package tests is a collection of beacon implementation test cases.
Index ¶
- func BeaconImplementationTests(t *testing.T, backend api.SetableBackend)
- func EpochtimeSetableImplementationTest(t *testing.T, backend api.Backend)
- func MustAdvanceEpoch(t *testing.T, backend api.SetableBackend) api.EpochTime
- func MustAdvanceEpochMulti(t *testing.T, backend api.SetableBackend, reg registry.Backend, ...) api.EpochTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeaconImplementationTests ¶
func BeaconImplementationTests(t *testing.T, backend api.SetableBackend)
BeaconImplementationTests exercises the basic functionality of a beacon backend.
func EpochtimeSetableImplementationTest ¶ added in v0.2100.0
EpochtimeSetableImplementationTest exercises the basic functionality of a setable (mock) epochtime backend.
func MustAdvanceEpoch ¶ added in v0.2100.0
MustAdvanceEpoch advances the epoch and returns the new epoch.
func MustAdvanceEpochMulti ¶ added in v0.2103.0
func MustAdvanceEpochMulti(t *testing.T, backend api.SetableBackend, reg registry.Backend, increment uint64) api.EpochTime
MustAdvanceEpochMulti advances the epoch by the specified increment, and returns the new epoch. Between each epoch increment the method ensures that the consensus validator is re-registered so that epochs are not advanced too fast, which could cause a consensus error due to no validators being registered for the epoch.
Types ¶
This section is empty.