Files
prysm/beacon-chain/db/kv/encoding_test.go
Bastin 92bd211e4d upgrade v6 to v7 (#15989)
* upgrade v6 to v7

* changelog

* update-go-ssz
2025-11-06 16:16:23 +00:00

17 lines
349 B
Go

package kv
import (
"testing"
testpb "github.com/OffchainLabs/prysm/v7/proto/testing"
"github.com/OffchainLabs/prysm/v7/testing/require"
)
func Test_encode_handlesNilFromFunction(t *testing.T) {
foo := func() *testpb.Puzzle {
return nil
}
_, err := encode(t.Context(), foo())
require.ErrorContains(t, "cannot encode nil message", err)
}