go/gopls/internal/regtest
Rob Findley 53e0aa8268 gopls/internal/regtest: add an option to nest the workdir
Add a regtest run option NestWorkdir, which causes the working directory
to be nested in the editor workspace, and use it in some modfile tests
to exercise the new workspace logic.

For now we only run the nested tests while using experimental workspace
modules. In a later CL, the 'legacy' mode will be updated to find a
solitary nested module, at which point we should be able to run nested
in all modes.

Fixes golang/go#42111

Change-Id: I0bd3b31969684bc1ba1935633cbb9a3f26de1587
Reviewed-on: https://go-review.googlesource.com/c/tools/+/257138
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Robert Findley <rfindley@google.com>
2020-11-10 18:07:23 +00:00
..
bench_test.go gopls/internal/regtest: always await InitialWorkspaceLoad 2020-09-29 16:13:45 +00:00
codelens_test.go internal/lsp/fake: reflect on-disk changes in clean buffers 2020-11-05 22:03:10 +00:00
completion_bench_test.go gopls/internal/regtest: always await InitialWorkspaceLoad 2020-09-29 16:13:45 +00:00
completion_test.go gopls/internal/regtest: add benchmarks for completions 2020-09-24 16:27:44 +00:00
configuration_test.go gopls/internal/regtest: always await InitialWorkspaceLoad 2020-09-29 16:13:45 +00:00
definition_test.go internal/lsp: fix hover for builtin error method (Error) 2020-10-05 18:50:03 +00:00
diagnostics_test.go gopls/internal/regtest: add an option to nest the workdir 2020-11-10 18:07:23 +00:00
doc.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
env.go gopls/internal/regtest: simplify expectation return values 2020-09-16 12:40:19 +00:00
env_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
expectation.go gopls/internal/regtest: add a failing test for swig 2020-10-13 01:55:53 +00:00
failures_test.go gopls: regtest to demonstrate gopls confused by //line directives 2020-10-21 12:08:33 +00:00
fix_test.go gopls/internal/regtest: always await InitialWorkspaceLoad 2020-09-29 16:13:45 +00:00
formatting_test.go gopls/internal/regtest: delete OpenFileWithContent 2020-10-16 23:30:35 +00:00
generate_test.go internal/lsp: fix go generate command for subdirs 2020-09-24 17:36:56 +00:00
imports_test.go gopls/internal/regtest: always await InitialWorkspaceLoad 2020-09-29 16:13:45 +00:00
link_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
modfile_test.go gopls/internal/regtest: add an option to nest the workdir 2020-11-10 18:07:23 +00:00
references_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
reg_test.go gopls/internal/regtest: allow cleanup to fail on windows 2020-09-30 20:10:28 +00:00
runner.go gopls/internal/regtest: add an option to nest the workdir 2020-11-10 18:07:23 +00:00
shared_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
stress_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
symbol_helper_test.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
symbol_test.go internal/lsp/source: add some additional symbol downranking 2020-09-16 12:25:06 +00:00
unix_test.go gopls/internal/regtest: simplify regtest EditorConfig 2020-09-16 12:02:33 +00:00
vendor_test.go internal/lsp: change `go mod vendor` warning into a diagnostic 2020-11-02 00:57:53 +00:00
watch_test.go gopls/internal/regtest: add a test for switching from modules to GOPATH 2020-10-13 18:32:36 +00:00
workspace_test.go internal/lsp/cache: assign a static temp workspace dir to the first view 2020-11-04 18:18:50 +00:00
wrappers.go internal/lsp/cache: introduce a workspace abstraction 2020-10-30 19:58:30 +00:00