gotools/gopls/internal/lsprpc/lsprpc_test.go

type FakeClient

func (c FakeClient) LogMessage(ctx context.Context, params *protocol.LogMessageParams) error {}

type fakeServer

func (fakeServer) Shutdown(ctx context.Context) error {}

type PingServer

func (s PingServer) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error {}

func TestClientLogging(t *testing.T) {}

type WaitableServer

func (s WaitableServer) Hover(ctx context.Context, _ *protocol.HoverParams) (_ *protocol.Hover, err error) {}

func (s WaitableServer) ResolveCompletionItem(_ context.Context, item *protocol.CompletionItem) (*protocol.CompletionItem, error) {}

func checkClose(t *testing.T, closer func() error) {}

func setupForwarding(ctx context.Context, t *testing.T, s protocol.Server) (direct, forwarded servertest.Connector, cleanup func()) {}

func TestRequestCancellation(t *testing.T) {}

const exampleProgram

func TestDebugInfoLifecycle(t *testing.T) {}

type initServer

func (s *initServer) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) {}

func TestEnvForwarding(t *testing.T) {}

func TestListenParsing(t *testing.T) {}

// For #59479, verify that empty slices are serialized as [].
func TestEmptySlices(t *testing.T) {}