aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/predicates.go
diff options
context:
space:
mode:
authorRobert Findley <rfindley@google.com>2023-01-18 13:08:49 -0500
committerGopher Robot <gobot@golang.org>2023-01-20 21:15:52 +0000
commit59964663e58d60719c707d9d59d7424d6f2ea7e0 (patch)
treeb6c9ca0f7f8310ee7b97bf54374800fb5316477f /src/go/types/predicates.go
parente587a7691b8603a89f55a57f78dae5e20fdbf5d1 (diff)
downloadgo-59964663e58d60719c707d9d59d7424d6f2ea7e0.tar.gz
go-59964663e58d60719c707d9d59d7424d6f2ea7e0.zip
go/types: add a test that generated files match types2
Adjust the go/types file generation to run in a test, so that we can easily reuse the existing logic to verify that the current content of go/types matches the expected result of generating from types2. This test will enforce that we don't forget to regenerate go/types when making changes to types2. Change-Id: Iee14b1402065f7f0ecbcf28000e07a06c08fa42e Reviewed-on: https://go-review.googlesource.com/c/go/+/462758 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/go/types/predicates.go')
-rw-r--r--src/go/types/predicates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/predicates.go b/src/go/types/predicates.go
index c80d41d702..1927844732 100644
--- a/src/go/types/predicates.go
+++ b/src/go/types/predicates.go
@@ -1,4 +1,4 @@
-// Code generated by "go run generator.go"; DO NOT EDIT.
+// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style