gotools/internal/imports/fix_test.go

var testDebug

var tests

func TestSimpleCases(t *testing.T) {}

func TestAppengine(t *testing.T) {}

func TestReadFromFilesystem(t *testing.T) {}

// Test support for packages in GOPATH that are actually symlinks.
// Also test that a symlink loop does not block the process.
func TestImportSymlinks(t *testing.T) {}

// Test support for packages in GOPATH whose files are symlinks.
func TestImportSymlinkFiles(t *testing.T) {}

func TestImportSymlinksWithIgnore(t *testing.T) {}

// Test for x/y/v2 convention for package y.
func TestModuleVersion(t *testing.T) {}

// Test for correctly identifying the name of a vendored package when it
// differs from its directory name. In this test, the import line
// "mypkg.com/mypkg_v1" would be removed if goimports wasn't able to detect
// that the package name is "mypkg".
func TestVendorPackage(t *testing.T) {}

func TestInternal(t *testing.T) {}

func TestProcessVendor(t *testing.T) {}

func TestFindStdlib(t *testing.T) {}

// https://golang.org/issue/31814
func TestStdlibNotPrefixed(t *testing.T) {}

func TestStdlibSelfImports(t *testing.T) {}

type testConfig

type fm

func (c testConfig) test(t *testing.T, fn func(*goimportTest)) {}

func (c testConfig) processTest(t *testing.T, module, file string, contents []byte, opts *Options, want string) {}

type goimportTest

func (t *goimportTest) process(module, file string, contents []byte, opts *Options) ([]byte, error) {}

func (t *goimportTest) processNonModule(file string, contents []byte, opts *Options) ([]byte, error) {}

func (t *goimportTest) assertProcessEquals(module, file string, contents []byte, opts *Options, want string) {}

// Tests that added imports are renamed when the import path's base doesn't
// match its package name.
func TestRenameWhenPackageNameMismatch(t *testing.T) {}

func TestPanicAstutils(t *testing.T) {}

// without PositionFor in sortImports this test panics
func TestPanic51916(t *testing.T) {}

// Tests that an existing import with badly mismatched path/name has its name
// correctly added. See #28645 and #29041.
// and check that //line directives are ignored (#51916)
func TestAddNameToMismatchedImport(t *testing.T) {}

// Tests that the LocalPrefix option causes imports
// to be added into a later group (num=3).
func TestLocalPrefix(t *testing.T) {}

// Tests that "package documentation" files are ignored.
func TestIgnoreDocumentationPackage(t *testing.T) {}

// Tests importPathToNameGoPathParse and in particular that it stops
// after finding the first non-documentation package name, not
// reporting an error on inconsistent package names (since it should
// never make it that far).
func TestImportPathToNameGoPathParse(t *testing.T) {}

func TestIgnoreConfiguration(t *testing.T) {}

// Skip "node_modules" directory.
func TestSkipNodeModules(t *testing.T) {}

// Tests that package global variables with the same name and function name as
// a function in a separate package do not result in an import which masks
// the global variable
func TestGlobalImports(t *testing.T) {}

// Some people put multiple packages' files in the same directory. Globals
// declared in other packages should be ignored.
func TestGlobalImports_DifferentPackage(t *testing.T) {}

func TestGlobalImports_MultipleMains(t *testing.T) {}

// Tests that sibling files - other files in the same package - can provide an
// import that may not be the default one otherwise.
func TestSiblingImports(t *testing.T) {}

// Tests #29180: a sibling import of the right package with the wrong name is used.
func TestSiblingImport_Misnamed(t *testing.T) {}

// Tests that an input file's own package is ignored.
func TestIgnoreOwnPackage(t *testing.T) {}

func TestExternalTestImportsPackageUnderTest(t *testing.T) {}

func TestPkgIsCandidate(t *testing.T) {}

// Issue 20941: this used to panic on Windows.
func TestProcessStdin(t *testing.T) {}

// Tests LocalPackagePromotion when there is a local package that matches, it
// should be the closest match.
// https://golang.org/issues/17557
func TestLocalPackagePromotion(t *testing.T) {}

// Tests FindImportInLocalGoFiles looks at the import lines for other Go files in the
// local directory, since the user is likely to import the same packages in the current
// Go file.  If an import is found that satisfies the need, it should be used over the
// standard library.
// https://golang.org/issues/17557
func TestFindImportInLocalGoFiles(t *testing.T) {}

func TestInMemoryFile(t *testing.T) {}

func TestImportNoGoFiles(t *testing.T) {}

// Ensures a token as large as 500000 bytes can be handled
// https://golang.org/issues/18201
func TestProcessLargeToken(t *testing.T) {}

// Tests that an external test package will import the package under test if it
// also uses symbols exported only in test files.
// https://golang.org/issues/29979
func TestExternalTest(t *testing.T) {}

// TestGetCandidates tests that get packages finds packages
// with correct priorities.
func TestGetCandidates(t *testing.T) {}

func TestGetImportPaths(t *testing.T) {}

func TestGetPackageCompletions(t *testing.T) {}

// Tests #34895: process should not panic on concurrent calls.
func TestConcurrentProcess(t *testing.T) {}

func TestNonlocalDot(t *testing.T) {}

func TestSymbolSearchStarvation(t *testing.T) {}

func TestMatchesPath(t *testing.T) {}

func BenchmarkMatchesPath(b *testing.B) {}