tools/internal/jsonrpc2
Bryan C. Mills 780626cdd1 all: fix non-gopls short tests on js/wasm and update for wasip1/wasm
testenv.HasExec should not assume that "js" and "ios" are the only
platforms that can't exec. Instead of hard-coding a list of GOOS,
hard-code only the ones known to work and probe the remainder by
trying to re-exec the test binary.

Similarly, in testenv_notunix, negate the list of unix platforms
instead of hard-coding the non-unix ones.

Add missing calls to testenv functions were needed.

For golang/go#58141.
Updates golang/go#59718.

Change-Id: I0114e0bfb6d091e84b325d7f9bb0896da22482be
Reviewed-on: https://go-review.googlesource.com/c/tools/+/486315
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Commit-Queue: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-04-20 14:27:21 +00:00
..
servertest gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
conn.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
handler.go internal/event: renaming the main event API functions 2020-04-23 17:21:36 +00:00
jsonrpc2.go internal/jsonrpc2: change jsonrpc2.Conn to be an interface 2020-06-03 17:06:45 +00:00
jsonrpc2_test.go internal/jsonrpc2: change jsonrpc2.Conn to be an interface 2020-06-03 17:06:45 +00:00
messages.go internal/jsonrpc2*: remove usage of golang.org/x/xerrors 2022-04-20 16:10:40 +00:00
serve.go all: use constant to avoid repeated definitions 2022-09-19 15:32:23 +00:00
serve_test.go all: fix non-gopls short tests on js/wasm and update for wasip1/wasm 2023-04-20 14:27:21 +00:00
stream.go internal/jsonrpc2: switch to building streams on top of net.Conn 2020-06-03 13:12:18 +00:00
wire.go all: fix spelling 2022-04-04 19:50:34 +00:00
wire_test.go internal/jsonrpc2: omit empty error data 2020-06-24 06:08:01 +00:00