mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
a9a4bb9163
* move testutil * util pkg * build * gaz Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
28 lines
1021 B
Go
28 lines
1021 B
Go
package v2
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
|
)
|
|
|
|
func TestBeaconState_AppendCurrentEpochAttestations(t *testing.T) {
|
|
s := &BeaconState{}
|
|
require.ErrorContains(t, "AppendCurrentEpochAttestations is not supported for hard fork 1 beacon state", s.AppendCurrentEpochAttestations(nil))
|
|
}
|
|
|
|
func TestBeaconState_AppendPreviousEpochAttestations(t *testing.T) {
|
|
s := &BeaconState{}
|
|
require.ErrorContains(t, "AppendPreviousEpochAttestations is not supported for hard fork 1 beacon state", s.AppendPreviousEpochAttestations(nil))
|
|
}
|
|
|
|
func TestBeaconState_SetCurrentEpochAttestations(t *testing.T) {
|
|
s := &BeaconState{}
|
|
require.ErrorContains(t, "SetCurrentEpochAttestations is not supported for hard fork 1 beacon state", s.SetCurrentEpochAttestations(nil))
|
|
}
|
|
|
|
func TestBeaconState_SetPreviousEpochAttestations(t *testing.T) {
|
|
s := &BeaconState{}
|
|
require.ErrorContains(t, "SetPreviousEpochAttestations is not supported for hard fork 1 beacon state", s.SetPreviousEpochAttestations(nil))
|
|
}
|