gotools/go/loader/loader_test.go

func TestMain(m *testing.M) {}

// TestFromArgs checks that conf.FromArgs populates conf correctly.
// It does no I/O.
func TestFromArgs(t *testing.T) {}

func TestLoad_NoInitialPackages(t *testing.T) {}

func TestLoad_MissingInitialPackage(t *testing.T) {}

func TestLoad_MissingInitialPackage_AllowErrors(t *testing.T) {}

func TestCreateUnnamedPackage(t *testing.T) {}

func TestLoad_MissingFileInCreatedPackage(t *testing.T) {}

func TestLoad_MissingFileInCreatedPackage_AllowErrors(t *testing.T) {}

func TestLoad_ParseError(t *testing.T) {}

func TestLoad_ParseError_AllowErrors(t *testing.T) {}

func TestLoad_FromSource_Success(t *testing.T) {}

func TestLoad_FromImports_Success(t *testing.T) {}

func TestLoad_MissingIndirectImport(t *testing.T) {}

func TestLoad_BadDependency_AllowErrors(t *testing.T) {}

func TestCwd(t *testing.T) {}

func TestLoad_vendor(t *testing.T) {}

func TestVendorCwd(t *testing.T) {}

func TestVendorCwdIssue16580(t *testing.T) {}

func TestTransitivelyErrorFreeFlag(t *testing.T) {}

// Test that syntax (scan/parse), type, and loader errors are recorded
// (in PackageInfo.Errors) and reported (via Config.TypeChecker.Error).
func TestErrorReporting(t *testing.T) {}

func TestCycles(t *testing.T) {}

// Simplifying wrapper around buildutil.FakeContext for single-file packages.
func fakeContext(pkgs map[string]string) *build.Context {}

func hasError(errors []error, substr string) bool {}

func keys(m map[string]bool) (keys []string) {}

// Returns all loaded packages.
func all(prog *loader.Program) []string {}

// Returns initially imported packages, as a string.
func imported(prog *loader.Program) string {}

// Returns initially created packages, as a string.
func created(prog *loader.Program) string {}

// Load package "io" twice in parallel.
// When run with -race, this is a regression test for Go issue 20718, in
// which the global "unsafe" package was modified concurrently.
func TestLoad1(t *testing.T) {}

func TestLoad2(t *testing.T) {}

func loadIO(t *testing.T) {}

func TestCgoCwdIssue46877(t *testing.T) {}