1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:18:33 -06:00
go/internal/lsp/regtest
Rob Findley 38a97e00a8 internal/lsp/regtest: track outstanding work using the progress API
In preparation for later changes, add support for tracking outstanding
work in the lsp regtests. This simply threads through progress
notifications and tracks their state in regtest.Env.state. A new
Expectation is added to assert that there is no outstanding work, but
this is as-yet unused.

A unit test is added for Env to check that we're handling work progress
reports correctly after Marshaling/Unmarshaling, since we're not yet
exercising this code path in actual regtests.

Change-Id: I104caf25cfd49340f13d086314f5aef2b8f3bd3b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/229320
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-04-23 20:44:50 +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 internal/lsp/regtest: add regtest for golang/go#38207 2020-04-22 01:51:11 +00:00
diagnostics_test.go internal/lsp: add regtest for golang/go#37984 2020-04-22 02:23:33 +00:00
env_test.go internal/lsp/regtest: track outstanding work using the progress API 2020-04-23 20:44:50 +00:00
env.go internal/lsp/regtest: track outstanding work using the progress API 2020-04-23 20:44:50 +00:00
formatting_test.go internal/lsp/regtest: put testing.T back in the test func signature 2020-04-14 18:42:46 +00:00
reg_test.go internal/lsp/regtest: generalize expectations beyond diagnostic messages 2020-04-16 21:39:01 +00:00
serialization_test.go internal/lsp/regtest: put testing.T back in the test func signature 2020-04-14 18:42:46 +00:00
shared_test.go internal/lsp/regtest: add support for custom test proxy data 2020-04-16 19:38:27 +00:00
wrappers.go internal/lsp: add regtest for golang/go#38211 2020-04-22 01:32:14 +00:00