gotools/internal/gcimporter/gcimporter_test.go

func TestMain(m *testing.M) {}

func needsCompiler(t *testing.T, compiler string) {}

// compile runs the compiler on filename, with dirname as the working directory,
// and writes the output file to outdirname.
// compile gives the resulting package a packagepath of p.
func compile(t *testing.T, dirname, filename, outdirname string, packagefiles map[string]string) string {}

func compilePkg(t *testing.T, dirname, filename, outdirname string, packagefiles map[string]string, pkg string) string {}

func testPath(t *testing.T, path, srcDir string) *types.Package {}

func mktmpdir(t *testing.T) string {}

const testfile

func TestImportTestdata(t *testing.T) {}

func testImportTestdata(t *testing.T) {}

func TestImportTypeparamTests(t *testing.T) {}

func testImportTypeparamTests(t *testing.T, skip map[string]string) {}

func checkFile(t *testing.T, filename string, src []byte) *types.Package {}

func TestVersionHandling(t *testing.T) {}

func TestImportStdLib(t *testing.T) {}

func testImportStdLib(t *testing.T) {}

var importedObjectTests

func TestImportedTypes(t *testing.T) {}

func TestImportedConsts(t *testing.T) {}

// importObject imports the object specified by a name of the form
// <import path>.<object name>, e.g. go/types.Type.
//
// If any errors occur they are reported via t and the resulting object will
// be nil.
func importObject(t *testing.T, name string) types.Object {}

// verifyInterfaceMethodRecvs verifies that method receiver types
// are named if the methods belong to a named interface type.
func verifyInterfaceMethodRecvs(t *testing.T, named *types.Named, level int) {}

func TestIssue5815(t *testing.T) {}

// Smoke test to ensure that imported methods get the correct package.
func TestCorrectMethodPackage(t *testing.T) {}

func TestIssue13566(t *testing.T) {}

func TestIssue13898(t *testing.T) {}

func TestIssue15517(t *testing.T) {}

func TestIssue15920(t *testing.T) {}

func TestIssue20046(t *testing.T) {}

func TestIssue25301(t *testing.T) {}

func TestIssue51836(t *testing.T) {}

func TestIssue61561(t *testing.T) {}

func TestIssue57015(t *testing.T) {}

// This is a regression test for a failure to export a package
// containing type errors.
//
// Though the issues and tests are specific, they may be representatives of a
// class of exporter bugs on ill-typed code that we have yet to flush out.
//
// TODO(adonovan): systematize our search for similar problems using
// fuzz testing.
func TestExportInvalid(t *testing.T) {}

func TestIssue58296(t *testing.T) {}

func TestIssueAliases(t *testing.T) {}

// apkg returns the package "a" prefixed by (as a package) testoutdir
func apkg(testoutdir string) string {}

func importPkg(t *testing.T, path, srcDir string) *types.Package {}

func compileAndImportPkg(t *testing.T, name string) *types.Package {}

func lookupObj(t *testing.T, scope *types.Scope, name string) types.Object {}

// skipWindows skips the test on windows.
//
// On windows, we have to set the -D option for the compiler to avoid having a drive
// letter and an illegal ':' in the import path - just skip it (see also issue #3483).
func skipWindows(t *testing.T) {}

const aliasesOff

const aliasesOn

// testAliases runs f within subtests with the GODEBUG gotypesalias enables and disabled.
func testAliases(t *testing.T, f func(*testing.T)) {}

type importMap

func (m importMap) Import(path string) (*types.Package, error) {}

func TestIssue69912(t *testing.T) {}