package cache_test import ( "testing" "github.com/ledgerwatch/erigon/cl/cltypes/solid" "github.com/ledgerwatch/erigon/cl/phase1/cache" "github.com/stretchr/testify/require" ) func TestAttestationsCache(t *testing.T) { input := []uint64{1} a := &solid.AttestationData{} cache.StoreAttestation(a, []uint64{1}) output, valid := cache.LoadAttestatingIndicies(a) require.True(t, valid) require.Equal(t, input, output) }