gotools/gopls/internal/test/integration/runner.go

type Mode

const Default

const Forwarded

const SeparateProcess

func (m Mode) String() string {}

type Runner

type TestFunc

// Run executes the test function in the default configured gopls execution
// modes. For each a test run, a new workspace is created containing the
// un-txtared files specified by filedata.
func (r *Runner) Run(t *testing.T, files string, test TestFunc, opts ...RunOption) {}

// ConnectGoplsEnv creates a new Gopls environment for the given sandbox,
// editor config, and server connector.
//
// TODO(rfindley): significantly refactor the way testing environments are
// constructed.
func ConnectGoplsEnv(t testing.TB, ctx context.Context, sandbox *fake.Sandbox, config fake.EditorConfig, connector servertest.Connector) *Env {}

var longBuilders

// TODO(rfindley): inline into Main.
func checkBuilder() string {}

type loggingFramer

type safeBuffer

func (b *safeBuffer) Write(p []byte) (int, error) {}

func (s *loggingFramer) framer(f jsonrpc2.Framer) jsonrpc2.Framer {}

func (s *loggingFramer) printBuffers(testname string, w io.Writer) {}

// defaultServer handles the Default execution mode.
func (r *Runner) defaultServer() jsonrpc2.StreamServer {}

// forwardedServer handles the Forwarded execution mode.
func (r *Runner) forwardedServer() jsonrpc2.StreamServer {}

const runTestAsGoplsEnvvar

// separateProcessServer handles the SeparateProcess execution mode.
func (r *Runner) separateProcessServer() jsonrpc2.StreamServer {}

func newForwarder(network, address string) jsonrpc2.StreamServer {}

// Close cleans up resource that have been allocated to this workspace.
func (r *Runner) Close() error {}