1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:18:32 -06:00
go/internal/lsp/lsprpc
Rob Findley 92fa1ff4b1 internal/lsp/regtest: add support for custom test proxy data
Certain regtests require referencing external data. To support this, add
the ability to use a file-based proxy populated with testdata.

To expose this configuration, augment the regtest runner with variadic
options. Also use this to replace the Runner.RunInMode function.

Add a simple regtest that uses this functionality.

Updates golang/go#36879

Change-Id: I7e6314430abcd127dbb7bca12574ef9935bf1f83
Reviewed-on: https://go-review.googlesource.com/c/tools/+/228235
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-04-16 19:38:27 +00:00
..
autostart_default.go internal/lsp/lsprpc: don't connect to sockets owned by different users 2020-03-09 18:08:59 +00:00
autostart_posix.go internal/lsp/lsprpc: don't connect to sockets owned by different users 2020-03-09 18:08:59 +00:00
lsprpc_test.go internal/lsp/regtest: add support for custom test proxy data 2020-04-16 19:38:27 +00:00
lsprpc.go internal/jsonrpc2: split reply from request 2020-04-13 01:58:12 +00:00