]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: nest all test data under the testdata directory
authorRob Findley <rfindley@google.com>
Wed, 28 Apr 2021 18:40:53 +0000 (14:40 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 29 Apr 2021 13:23:02 +0000 (13:23 +0000)
commit47cb0c46b206d3d1bcc176314c200e35c1f62cf2
tree29e2a98809c44bcfe4b864bb962e30f0bfe62c0c
parentc4c68fb57f1b081557a837e8809094b42cfdc5e3
go/types: nest all test data under the testdata directory

Having multiple subdirectories of go/types containing test data is
slightly problematic:
 - If ever we were to include a .go file in one of these directories,
   we'd inadvertently create a visible package.
 - It's difficult to add other content in testdata/, since TestTestdata
   scans the entire directory.

Move everything down a level, into testdata/{fixedbugs,examples,check},
and update tests accordingly.

Change-Id: Idd074c94b7b261d678934330539e41a48c2a9dc9
Reviewed-on: https://go-review.googlesource.com/c/go/+/314829
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
102 files changed:
src/go/types/check_test.go
src/go/types/testdata/check/blank.src [moved from src/go/types/testdata/blank.src with 100% similarity]
src/go/types/testdata/check/builtins.go2 [moved from src/go/types/testdata/builtins.go2 with 100% similarity]
src/go/types/testdata/check/builtins.src [moved from src/go/types/testdata/builtins.src with 100% similarity]
src/go/types/testdata/check/chans.go2 [moved from src/go/types/testdata/chans.go2 with 100% similarity]
src/go/types/testdata/check/const0.src [moved from src/go/types/testdata/const0.src with 100% similarity]
src/go/types/testdata/check/const1.src [moved from src/go/types/testdata/const1.src with 100% similarity]
src/go/types/testdata/check/constdecl.src [moved from src/go/types/testdata/constdecl.src with 100% similarity]
src/go/types/testdata/check/conversions.src [moved from src/go/types/testdata/conversions.src with 100% similarity]
src/go/types/testdata/check/conversions2.src [moved from src/go/types/testdata/conversions2.src with 100% similarity]
src/go/types/testdata/check/cycles.src [moved from src/go/types/testdata/cycles.src with 100% similarity]
src/go/types/testdata/check/cycles1.src [moved from src/go/types/testdata/cycles1.src with 100% similarity]
src/go/types/testdata/check/cycles2.src [moved from src/go/types/testdata/cycles2.src with 100% similarity]
src/go/types/testdata/check/cycles3.src [moved from src/go/types/testdata/cycles3.src with 100% similarity]
src/go/types/testdata/check/cycles4.src [moved from src/go/types/testdata/cycles4.src with 100% similarity]
src/go/types/testdata/check/cycles5.src [moved from src/go/types/testdata/cycles5.src with 100% similarity]
src/go/types/testdata/check/decls0.src [moved from src/go/types/testdata/decls0.src with 100% similarity]
src/go/types/testdata/check/decls1.src [moved from src/go/types/testdata/decls1.src with 100% similarity]
src/go/types/testdata/check/decls2/decls2a.src [moved from src/go/types/testdata/decls2/decls2a.src with 100% similarity]
src/go/types/testdata/check/decls2/decls2b.src [moved from src/go/types/testdata/decls2/decls2b.src with 100% similarity]
src/go/types/testdata/check/decls3.src [moved from src/go/types/testdata/decls3.src with 100% similarity]
src/go/types/testdata/check/decls4.src [moved from src/go/types/testdata/decls4.src with 100% similarity]
src/go/types/testdata/check/decls5.src [moved from src/go/types/testdata/decls5.src with 100% similarity]
src/go/types/testdata/check/errors.src [moved from src/go/types/testdata/errors.src with 100% similarity]
src/go/types/testdata/check/expr0.src [moved from src/go/types/testdata/expr0.src with 100% similarity]
src/go/types/testdata/check/expr1.src [moved from src/go/types/testdata/expr1.src with 100% similarity]
src/go/types/testdata/check/expr2.src [moved from src/go/types/testdata/expr2.src with 100% similarity]
src/go/types/testdata/check/expr3.src [moved from src/go/types/testdata/expr3.src with 100% similarity]
src/go/types/testdata/check/go1_12.src [moved from src/go/types/testdata/go1_12.src with 100% similarity]
src/go/types/testdata/check/go1_13.src [moved from src/go/types/testdata/go1_13.src with 100% similarity]
src/go/types/testdata/check/go1_8.src [moved from src/go/types/testdata/go1_8.src with 100% similarity]
src/go/types/testdata/check/gotos.src [moved from src/go/types/testdata/gotos.src with 100% similarity]
src/go/types/testdata/check/importC.src [moved from src/go/types/testdata/importC.src with 100% similarity]
src/go/types/testdata/check/importdecl0/importdecl0a.src [moved from src/go/types/testdata/importdecl0/importdecl0a.src with 100% similarity]
src/go/types/testdata/check/importdecl0/importdecl0b.src [moved from src/go/types/testdata/importdecl0/importdecl0b.src with 100% similarity]
src/go/types/testdata/check/importdecl1/importdecl1a.src [moved from src/go/types/testdata/importdecl1/importdecl1a.src with 100% similarity]
src/go/types/testdata/check/importdecl1/importdecl1b.src [moved from src/go/types/testdata/importdecl1/importdecl1b.src with 100% similarity]
src/go/types/testdata/check/init0.src [moved from src/go/types/testdata/init0.src with 100% similarity]
src/go/types/testdata/check/init1.src [moved from src/go/types/testdata/init1.src with 100% similarity]
src/go/types/testdata/check/init2.src [moved from src/go/types/testdata/init2.src with 100% similarity]
src/go/types/testdata/check/issue25008/issue25008a.src [moved from src/go/types/testdata/issue25008/issue25008a.src with 100% similarity]
src/go/types/testdata/check/issue25008/issue25008b.src [moved from src/go/types/testdata/issue25008/issue25008b.src with 100% similarity]
src/go/types/testdata/check/issues.go2 [moved from src/go/types/testdata/issues.go2 with 100% similarity]
src/go/types/testdata/check/issues.src [moved from src/go/types/testdata/issues.src with 100% similarity]
src/go/types/testdata/check/labels.src [moved from src/go/types/testdata/labels.src with 100% similarity]
src/go/types/testdata/check/linalg.go2 [moved from src/go/types/testdata/linalg.go2 with 100% similarity]
src/go/types/testdata/check/literals.src [moved from src/go/types/testdata/literals.src with 100% similarity]
src/go/types/testdata/check/main.src [moved from src/go/types/testdata/main.src with 100% similarity]
src/go/types/testdata/check/map.go2 [moved from src/go/types/testdata/map.go2 with 100% similarity]
src/go/types/testdata/check/map2.go2 [moved from src/go/types/testdata/map2.go2 with 100% similarity]
src/go/types/testdata/check/methodsets.src [moved from src/go/types/testdata/methodsets.src with 100% similarity]
src/go/types/testdata/check/shifts.src [moved from src/go/types/testdata/shifts.src with 100% similarity]
src/go/types/testdata/check/slices.go2 [moved from src/go/types/testdata/slices.go2 with 100% similarity]
src/go/types/testdata/check/stmt0.src [moved from src/go/types/testdata/stmt0.src with 100% similarity]
src/go/types/testdata/check/stmt1.src [moved from src/go/types/testdata/stmt1.src with 100% similarity]
src/go/types/testdata/check/tinference.go2 [moved from src/go/types/testdata/tinference.go2 with 100% similarity]
src/go/types/testdata/check/tmp.go2 [moved from src/go/types/testdata/tmp.go2 with 100% similarity]
src/go/types/testdata/check/todos.go2 [moved from src/go/types/testdata/todos.go2 with 100% similarity]
src/go/types/testdata/check/typeinst.go2 [moved from src/go/types/testdata/typeinst.go2 with 100% similarity]
src/go/types/testdata/check/typeinst2.go2 [moved from src/go/types/testdata/typeinst2.go2 with 100% similarity]
src/go/types/testdata/check/typeparams.go2 [moved from src/go/types/testdata/typeparams.go2 with 100% similarity]
src/go/types/testdata/check/vardecl.src [moved from src/go/types/testdata/vardecl.src with 100% similarity]
src/go/types/testdata/examples/functions.go2 [moved from src/go/types/examples/functions.go2 with 100% similarity]
src/go/types/testdata/examples/inference.go2 [moved from src/go/types/examples/inference.go2 with 100% similarity]
src/go/types/testdata/examples/methods.go2 [moved from src/go/types/examples/methods.go2 with 100% similarity]
src/go/types/testdata/examples/types.go2 [moved from src/go/types/examples/types.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue20583.src [moved from src/go/types/fixedbugs/issue20583.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue23203a.src [moved from src/go/types/fixedbugs/issue23203a.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue23203b.src [moved from src/go/types/fixedbugs/issue23203b.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue26390.src [moved from src/go/types/fixedbugs/issue26390.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue28251.src [moved from src/go/types/fixedbugs/issue28251.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue39634.go2 [moved from src/go/types/fixedbugs/issue39634.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39664.go2 [moved from src/go/types/fixedbugs/issue39664.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39680.go2 [moved from src/go/types/fixedbugs/issue39680.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39693.go2 [moved from src/go/types/fixedbugs/issue39693.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39699.go2 [moved from src/go/types/fixedbugs/issue39699.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39711.go2 [moved from src/go/types/fixedbugs/issue39711.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39723.go2 [moved from src/go/types/fixedbugs/issue39723.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39725.go2 [moved from src/go/types/fixedbugs/issue39725.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39754.go2 [moved from src/go/types/fixedbugs/issue39754.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39755.go2 [moved from src/go/types/fixedbugs/issue39755.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39768.go2 [moved from src/go/types/fixedbugs/issue39768.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39938.go2 [moved from src/go/types/fixedbugs/issue39938.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39948.go2 [moved from src/go/types/fixedbugs/issue39948.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39976.go2 [moved from src/go/types/fixedbugs/issue39976.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue39982.go2 [moved from src/go/types/fixedbugs/issue39982.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue40038.go2 [moved from src/go/types/fixedbugs/issue40038.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue40056.go2 [moved from src/go/types/fixedbugs/issue40056.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue40057.go2 [moved from src/go/types/fixedbugs/issue40057.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue40301.go2 [moved from src/go/types/fixedbugs/issue40301.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue40684.go2 [moved from src/go/types/fixedbugs/issue40684.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue41124.go2 [moved from src/go/types/fixedbugs/issue41124.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue42695.src [moved from src/go/types/fixedbugs/issue42695.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue42758.go2 [moved from src/go/types/fixedbugs/issue42758.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue43087.src [moved from src/go/types/fixedbugs/issue43087.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue43110.src [moved from src/go/types/fixedbugs/issue43110.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue43124.src [moved from src/go/types/fixedbugs/issue43124.src with 100% similarity]
src/go/types/testdata/fixedbugs/issue44688.go2 [moved from src/go/types/fixedbugs/issue44688.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue44799.go2 [moved from src/go/types/fixedbugs/issue44799.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue45548.go2 [moved from src/go/types/fixedbugs/issue45548.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue45635.go2 [moved from src/go/types/fixedbugs/issue45635.go2 with 100% similarity]
src/go/types/testdata/fixedbugs/issue6977.src [moved from src/go/types/fixedbugs/issue6977.src with 100% similarity]