]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: add a test that generated files match types2
authorRobert Findley <rfindley@google.com>
Wed, 18 Jan 2023 18:08:49 +0000 (13:08 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 21:15:52 +0000 (21:15 +0000)
commit59964663e58d60719c707d9d59d7424d6f2ea7e0
treeb6c9ca0f7f8310ee7b97bf54374800fb5316477f
parente587a7691b8603a89f55a57f78dae5e20fdbf5d1
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>
39 files changed:
src/go/types/array.go
src/go/types/basic.go
src/go/types/chan.go
src/go/types/context.go
src/go/types/context_test.go
src/go/types/gccgosizes.go
src/go/types/generate.go
src/go/types/generate_test.go [moved from src/go/types/generator.go with 83% similarity]
src/go/types/hilbert_test.go
src/go/types/infer.go
src/go/types/instantiate.go
src/go/types/instantiate_test.go
src/go/types/lookup.go
src/go/types/main_test.go
src/go/types/map.go
src/go/types/named.go
src/go/types/object.go
src/go/types/object_test.go
src/go/types/objset.go
src/go/types/package.go
src/go/types/pointer.go
src/go/types/predicates.go
src/go/types/scope.go
src/go/types/selection.go
src/go/types/sizes.go
src/go/types/slice.go
src/go/types/subst.go
src/go/types/termlist.go
src/go/types/termlist_test.go
src/go/types/tuple.go
src/go/types/typelists.go
src/go/types/typeparam.go
src/go/types/typeterm.go
src/go/types/typeterm_test.go
src/go/types/under.go
src/go/types/unify.go
src/go/types/universe.go
src/go/types/util_test.go
src/go/types/validtype.go