mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-15 14:38:20 +00:00
3c76cc3af5
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
34 lines
1016 B
Go
34 lines
1016 B
Go
package v3
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state"
|
|
testtmpl "github.com/prysmaticlabs/prysm/beacon-chain/state/testing"
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
func TestBeaconState_SlotDataRace(t *testing.T) {
|
|
testtmpl.VerifyBeaconState_SlotDataRace(t, func() (state.BeaconState, error) {
|
|
return InitializeFromProto(ðpb.BeaconStateBellatrix{Slot: 1})
|
|
})
|
|
}
|
|
|
|
func TestBeaconState_MatchCurrentJustifiedCheckpt(t *testing.T) {
|
|
testtmpl.VerifyBeaconState_MatchCurrentJustifiedCheckptNative(
|
|
t,
|
|
func(cp *ethpb.Checkpoint) (state.BeaconState, error) {
|
|
return InitializeFromProto(ðpb.BeaconStateBellatrix{CurrentJustifiedCheckpoint: cp})
|
|
},
|
|
)
|
|
}
|
|
|
|
func TestBeaconState_MatchPreviousJustifiedCheckpt(t *testing.T) {
|
|
testtmpl.VerifyBeaconState_MatchPreviousJustifiedCheckptNative(
|
|
t,
|
|
func(cp *ethpb.Checkpoint) (state.BeaconState, error) {
|
|
return InitializeFromProto(ðpb.BeaconStateBellatrix{PreviousJustifiedCheckpoint: cp})
|
|
},
|
|
)
|
|
}
|