Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm committed Jul 19, 2024
1 parent 686f2e0 commit 1b767f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion proto/engine/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ ssz_proto_files(
go_test(
name = "go_default_test",
srcs = [
"export_test.go",
"execution_engine_fuzz_test.go",
"json_marshal_unmarshal_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//config/fieldparams:go_default_library",
"//config/params:go_default_library",
"//consensus-types/primitives:go_default_library",
Expand Down
7 changes: 4 additions & 3 deletions proto/engine/v1/execution_engine_fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package enginev1
package enginev1_test

import (
"fmt"
"testing"

fuzz "github.com/google/gofuzz"
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
"github.com/prysmaticlabs/prysm/v5/testing/require"
)

func TestCopyExecutionPayload_Fuzz(t *testing.T) {
fuzzCopies(t, &ExecutionPayloadElectra{})
fuzzCopies(t, &enginev1.ExecutionPayloadElectra{})
}

func fuzzCopies[T any, C copier[T]](t *testing.T, obj C) {
func fuzzCopies[T any, C enginev1.Copier[T]](t *testing.T, obj C) {
fuzzer := fuzz.NewWithSeed(0)
amount := 1000
t.Run(fmt.Sprintf("%T", obj), func(t *testing.T) {
Expand Down
3 changes: 3 additions & 0 deletions proto/engine/v1/export_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package enginev1

type Copier[T any] copier[T]

0 comments on commit 1b767f6

Please sign in to comment.