mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
a9a4bb9163
* move testutil * util pkg * build * gaz Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
18 lines
365 B
Go
18 lines
365 B
Go
package kv
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
testpb "github.com/prysmaticlabs/prysm/proto/testing"
|
|
"github.com/prysmaticlabs/prysm/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)
|
|
}
|