gotools/gopls/internal/cmd/integration_test.go

// TestVersion tests the 'version' subcommand (info.go).
func TestVersion(t *testing.T) {}

// TestCheck tests the 'check' subcommand (check.go).
func TestCheck(t *testing.T) {}

// TestCallHierarchy tests the 'call_hierarchy' subcommand (call_hierarchy.go).
func TestCallHierarchy(t *testing.T) {}

// TestCodeLens tests the 'codelens' subcommand (codelens.go).
func TestCodeLens(t *testing.T) {}

// TestDefinition tests the 'definition' subcommand (definition.go).
func TestDefinition(t *testing.T) {}

// TestExecute tests the 'execute' subcommand (execute.go).
func TestExecute(t *testing.T) {}

// TestFoldingRanges tests the 'folding_ranges' subcommand (folding_range.go).
func TestFoldingRanges(t *testing.T) {}

// TestFormat tests the 'format' subcommand (format.go).
func TestFormat(t *testing.T) {}

// TestHighlight tests the 'highlight' subcommand (highlight.go).
func TestHighlight(t *testing.T) {}

// TestImplementations tests the 'implementation' subcommand (implementation.go).
func TestImplementations(t *testing.T) {}

// TestImports tests the 'imports' subcommand (imports.go).
func TestImports(t *testing.T) {}

// TestLinks tests the 'links' subcommand (links.go).
func TestLinks(t *testing.T) {}

// TestReferences tests the 'references' subcommand (references.go).
func TestReferences(t *testing.T) {}

// TestSignature tests the 'signature' subcommand (signature.go).
func TestSignature(t *testing.T) {}

// TestPrepareRename tests the 'prepare_rename' subcommand (prepare_rename.go).
func TestPrepareRename(t *testing.T) {}

// TestRename tests the 'rename' subcommand (rename.go).
func TestRename(t *testing.T) {}

// TestSymbols tests the 'symbols' subcommand (symbols.go).
func TestSymbols(t *testing.T) {}

// TestSemtok tests the 'semtok' subcommand (semantictokens.go).
func TestSemtok(t *testing.T) {}

func TestStats(t *testing.T) {}

// TestCodeAction tests the 'codeaction' subcommand (codeaction.go).
func TestCodeAction(t *testing.T) {}

// TestWorkspaceSymbol tests the 'workspace_symbol' subcommand (workspace_symbol.go).
func TestWorkspaceSymbol(t *testing.T) {}

func TestMain(m *testing.M) {}

// This function is a stand-in for gopls.main in ../../../../main.go.
func goplsMain() {}

// writeTree extracts a txtar archive into a new directory and returns its path.
func writeTree(t *testing.T, archive string) string {}

// gopls executes gopls in a child process.
func gopls(t *testing.T, dir string, args ...string) *result {}

func goplsWithEnv(t *testing.T, dir string, env []string, args ...string) *result {}

type result

func (res *result) String() string {}

// checkExit asserts that gopls returned the expected exit code.
func (res *result) checkExit(success bool) {}

// checkStdout asserts that the gopls standard output matches the pattern.
func (res *result) checkStdout(pattern string) {}

// checkStderr asserts that the gopls standard error matches the pattern.
func (res *result) checkStderr(pattern string) {}

func (res *result) checkOutput(pattern, name, content string) {}

// toJSON decodes res.stdout as JSON into to *ptr and reports its success.
func (res *result) toJSON(ptr interface{}

// checkContent checks that the contents of the file are as expected.
func checkContent(t *testing.T, filename, want string) {}