gotools/gopls/internal/test/integration/diagnostics/diagnostics_test.go

func TestMain(m *testing.M) {}

const exampleProgram

func TestDiagnosticErrorInEditedFile(t *testing.T) {}

func TestMissingImportDiagsClearOnFirstFile(t *testing.T) {}

func TestDiagnosticErrorInNewFile(t *testing.T) {}

const badPackage

func TestDiagnosticClearingOnEdit(t *testing.T) {}

func TestDiagnosticClearingOnDelete_Issue37049(t *testing.T) {}

func TestDiagnosticClearingOnClose(t *testing.T) {}

// Tests golang/go#37978.
func TestIssue37978(t *testing.T) {}

const test38878

// Tests golang/go#38878: deleting a test file should clear its errors, and
// not break the workspace.
func TestDeleteTestVariant(t *testing.T) {}

// Tests golang/go#38878: deleting a test file on disk while it's still open
// should not clear its errors.
func TestDeleteTestVariant_DiskOnly(t *testing.T) {}

// TestNoMod confirms that gopls continues to work when a user adds a go.mod
// file to their workspace.
func TestNoMod(t *testing.T) {}

// Tests golang/go#38267.
func TestIssue38267(t *testing.T) {}

// Tests golang/go#38328.
func TestPackageChange_Issue38328(t *testing.T) {}

const testPackageWithRequire

const testPackageWithRequireProxy

func TestResolveDiagnosticWithDownload(t *testing.T) {}

func TestMissingDependency(t *testing.T) {}

// Tests golang/go#36951.
func TestAdHocPackages_Issue36951(t *testing.T) {}

// Tests golang/go#37984: GOPATH should be read from the go command.
func TestNoGOPATH_Issue37984(t *testing.T) {}

// Tests golang/go#38669.
func TestEqualInEnv_Issue38669(t *testing.T) {}

// Tests golang/go#38467.
func TestNoSuggestedFixesForGeneratedFiles_Issue38467(t *testing.T) {}

// Expect a module/GOPATH error if there is an error in the file at startup.
// Tests golang/go#37279.
func TestBrokenWorkspace_OutsideModule(t *testing.T) {}

func TestNonGoFolder(t *testing.T) {}

// Tests the repro case from golang/go#38602. Diagnostics are now handled properly,
// which blocks type checking.
func TestConflictingMainPackageErrors(t *testing.T) {}

const ardanLabsProxy

// Test for golang/go#38211.
func Test_Issue38211(t *testing.T) {}

// Test for golang/go#38207.
func TestNewModule_Issue38207(t *testing.T) {}

// Test for golang/go#36960.
func TestNewFileBadImports_Issue36960(t *testing.T) {}

// This test tries to replicate the workflow of a user creating a new x test.
// It also tests golang/go#39315.
func TestManuallyCreatingXTest(t *testing.T) {}

// Reproduce golang/go#40690.
func TestCreateOnlyXTest(t *testing.T) {}

func TestChangePackageName(t *testing.T) {}

func TestIgnoredFiles(t *testing.T) {}

// Partially reproduces golang/go#38977, moving a file between packages.
// It also gets hit by some go command bug fixed in 1.15, but we don't
// care about that so much here.
func TestDeletePackage(t *testing.T) {}

// This is a copy of the scenario_default/quickfix_empty_files.txt test from
// govim. Reproduces golang/go#39646.
func TestQuickFixEmptyFiles(t *testing.T) {}

func TestSingleFile(t *testing.T) {}

// Reproduces the case described in
// https://github.com/golang/go/issues/39296#issuecomment-652058883.
func TestPkgm(t *testing.T) {}

func TestClosingBuffer(t *testing.T) {}

// Reproduces golang/go#38424.
func TestCutAndPaste(t *testing.T) {}

// Reproduces golang/go#39763.
func TestInvalidPackageName(t *testing.T) {}

// This test verifies that the workspace scope is effectively limited to the
// workspace folder, if expandWorkspaceToModule is set.
func TestExpandWorkspaceToModule(t *testing.T) {}

// This test verifies that the workspace scope is effectively limited to the
// set of active modules.
//
// We should not get diagnostics or file watching patterns for paths outside of
// the active workspace.
func TestWorkspaceModules(t *testing.T) {}

func TestSimplifyCompositeLitDiagnostic(t *testing.T) {}

// Test some secondary diagnostics
func TestSecondaryDiagnostics(t *testing.T) {}

func TestOrphanedFiles(t *testing.T) {}

func TestSwig(t *testing.T) {}

// When foo_test.go is opened, gopls will object to the borked package name.
// This test asserts that when the package name is fixed, gopls will soon after
// have no more complaints about it.
// https://github.com/golang/go/issues/41061
func TestRenamePackage(t *testing.T) {}

// TestProgressBarErrors confirms that critical workspace load errors are shown
// and updated via progress reports.
func TestProgressBarErrors(t *testing.T) {}

func TestDeleteDirectory(t *testing.T) {}

// Confirms that circular imports are tested and reported.
func TestCircularImports(t *testing.T) {}

// Tests golang/go#46667: deleting a problematic import path should resolve
// import cycle errors.
func TestResolveImportCycle(t *testing.T) {}

func TestBadImport(t *testing.T) {}

func TestNestedModules(t *testing.T) {}

func TestAdHocPackagesReloading(t *testing.T) {}

func TestBuildTagChange(t *testing.T) {}

func TestIssue44736(t *testing.T) {}

func TestInitialization(t *testing.T) {}

// This test confirms that the view does not reinitialize when a go.mod file is
// opened.
func TestNoReinitialize(t *testing.T) {}

func TestLangVersion(t *testing.T) {}

func TestNoQuickFixForUndeclaredConstraint(t *testing.T) {}

func TestEditGoDirective(t *testing.T) {}

func TestEditGoDirectiveWorkspace(t *testing.T) {}

// This test demonstrates that analysis facts are correctly propagated
// across packages.
func TestInterpackageAnalysis(t *testing.T) {}

// This test ensures that only Analyzers with RunDespiteErrors=true
// are invoked on a package that would not compile, even if the errors
// are distant and localized.
func TestErrorsThatPreventAnalysis(t *testing.T) {}

// This test demonstrates the deprecated symbol analyzer
// produces deprecation notices with expected severity and tags.
func TestDeprecatedAnalysis(t *testing.T) {}

func TestDiagnosticsOnlyOnSaveFile(t *testing.T) {}