2021-11-22 17:37:55 +00:00
|
|
|
package v3
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestBeaconState_AppendCurrentEpochAttestations(t *testing.T) {
|
|
|
|
s := &BeaconState{}
|
2022-01-10 16:47:30 +00:00
|
|
|
require.ErrorContains(t, "AppendCurrentEpochAttestations is not supported for version Bellatrix beacon state", s.AppendCurrentEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestBeaconState_AppendPreviousEpochAttestations(t *testing.T) {
|
|
|
|
s := &BeaconState{}
|
2022-01-10 16:47:30 +00:00
|
|
|
require.ErrorContains(t, "AppendPreviousEpochAttestations is not supported for version Bellatrix beacon state", s.AppendPreviousEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestBeaconState_SetCurrentEpochAttestations(t *testing.T) {
|
|
|
|
s := &BeaconState{}
|
2022-01-10 16:47:30 +00:00
|
|
|
require.ErrorContains(t, "SetCurrentEpochAttestations is not supported for version Bellatrix beacon state", s.SetCurrentEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestBeaconState_SetPreviousEpochAttestations(t *testing.T) {
|
|
|
|
s := &BeaconState{}
|
2022-01-10 16:47:30 +00:00
|
|
|
require.ErrorContains(t, "SetPreviousEpochAttestations is not supported for version Bellatrix beacon state", s.SetPreviousEpochAttestations(nil))
|
2021-11-22 17:37:55 +00:00
|
|
|
}
|