Read the e2e Go version from go.mod and apply the safe go fix modernizers (#4677)

This commit is contained in:
Junya Okabe
2026-10-02 14:23:15 +02:00
committed by GitHub
parent 1945b42820
commit 5aed393af8
12 changed files with 50 additions and 32 deletions
@@ -470,8 +470,8 @@ func TestPredicateProjectionsCoverEveryStatusField(t *testing.T) {
fieldNames := func(v any) []string {
typ := reflect.TypeOf(v)
names := make([]string, 0, typ.NumField())
for i := 0; i < typ.NumField(); i++ {
names = append(names, typ.Field(i).Name)
for field := range typ.Fields() {
names = append(names, field.Name)
}
sort.Strings(names)
return names