1
0
mirror of https://github.com/golang/go synced 2024-10-01 12:38:31 -06:00
go/internal/lsp/regtest
Heschi Kreinick 8e7acdbce8 all: replace build tags in tests with testenv helper
Many tool features, particularly modules-related, require particular Go
versions. Build tags are unwieldy, requiring one-off test files which
break up test organization.

Add a suite of testenv functions that check what Go version is in use.
Note that this is the logical Go version, as denoted by the release
tags; it should be updated at the beginning of the release cycle per
issue golang/go#38704.

For ease of reviewing, I'll merge/delete files in a followup CL.

Change-Id: Id85ce0f83387b3c45d68465161cf88447325d4f2
Reviewed-on: https://go-review.googlesource.com/c/tools/+/234882
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-05-27 18:32:53 +00:00
..
cgo_test.go internal/lsp/regtest: Skip failing/flaky TestRegenerateCgo 2020-05-18 19:26:01 +00:00
codelens_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
definition_test.go internal/lsp/regtest: put testing.T back in the test func signature 2020-04-14 18:42:46 +00:00
diagnostics_114_test.go all: replace build tags in tests with testenv helper 2020-05-27 18:32:53 +00:00
diagnostics_test.go internal/lsp/regtest: add regression test for golang/go#36960 2020-05-12 00:15:01 +00:00
doc.go internal/lsp/regtest: add expository package documentation 2020-04-28 21:10:48 +00:00
env_test.go internal/lsp: instrument work done reporting to use in regtests 2020-04-28 20:46:32 +00:00
env.go internal/lsp/regtest: add regression test for golang/go#36960 2020-05-12 00:15:01 +00:00
formatting_test.go internal/lsp: fix formatting edge cases (36824) 2020-05-26 20:56:00 +00:00
generate_test.go internal/lsp/regtest: add support for testing generate commands 2020-05-04 19:25:30 +00:00
imports_test.go internal/lsp: simplify and correct fixing imports for CodeAction 2020-05-18 22:54:12 +00:00
reg_test.go internal/lsp/regtest: generalize expectations beyond diagnostic messages 2020-04-16 21:39:01 +00:00
runner.go internal/lsp: add Regenerate Cgo code lens 2020-05-15 22:01:28 +00:00
serialization_test.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
shared_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
symbol_helper_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
symbol_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
unix_test.go internal/lsp/regtest: add a t.Skip for golang/go#36824 regtest 2020-05-21 15:57:04 +00:00
wrappers.go internal/lsp: simplify and correct fixing imports for CodeAction 2020-05-18 22:54:12 +00:00