mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
18 lines
371 B
Go
18 lines
371 B
Go
package kv
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
testpb "github.com/prysmaticlabs/prysm/v5/proto/testing"
|
|
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
)
|
|
|
|
func Test_encode_handlesNilFromFunction(t *testing.T) {
|
|
foo := func() *testpb.Puzzle {
|
|
return nil
|
|
}
|
|
_, err := encode(context.Background(), foo())
|
|
require.ErrorContains(t, "cannot encode nil message", err)
|
|
}
|