servertest
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package servertest provides utilities for running tests against a remote LSPserver.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typePipeServer¶
type PipeServer struct {// contains filtered or unexported fields}
PipeServer is a test server that handles connections over io.Pipes.
funcNewPipeServer¶
func NewPipeServer(serverjsonrpc2.StreamServer, framerjsonrpc2.Framer) *PipeServer
NewPipeServer returns a test server that can be connected to via io.Pipes.
typeTCPServer¶
type TCPServer struct {Addrstring// contains filtered or unexported fields}
TCPServer is a helper for executing tests against a remote jsonrpc2connection. Once initialized, its Addr field may be used to connect ajsonrpc2 client.
funcNewTCPServer¶
func NewTCPServer(ctxcontext.Context, serverjsonrpc2.StreamServer, framerjsonrpc2.Framer) *TCPServer
NewTCPServer returns a new test server listening on local tcp port andserving incoming jsonrpc2 streams using the provided stream server. Itpanics on any error.