go/src/go/build/build_test.go

func TestMain(m *testing.M) {}

func TestMatch(t *testing.T) {}

func TestDotSlashImport(t *testing.T) {}

func TestEmptyImport(t *testing.T) {}

func TestEmptyFolderImport(t *testing.T) {}

func TestMultiplePackageImport(t *testing.T) {}

func TestLocalDirectory(t *testing.T) {}

var shouldBuildTests

func TestShouldBuild(t *testing.T) {}

func TestGoodOSArchFile(t *testing.T) {}

type readNopCloser

func (r readNopCloser) Close() error {}

var ctxtP9

var ctxtAndroid

var matchFileTests

func TestMatchFile(t *testing.T) {}

func TestImportCmd(t *testing.T) {}

var expandSrcDirPath

var expandSrcDirTests

func TestExpandSrcDir(t *testing.T) {}

func TestShellSafety(t *testing.T) {}

// Want to get a "cannot find package" error when directory for package does not exist.
// There should be valid partial information in the returned non-nil *Package.
func TestImportDirNotExist(t *testing.T) {}

func TestImportVendor(t *testing.T) {}

func BenchmarkImportVendor(b *testing.B) {}

func TestImportVendorFailure(t *testing.T) {}

func TestImportVendorParentFailure(t *testing.T) {}

// Check that a package is loaded in module mode if GO111MODULE=on, even when
// no go.mod file is present. It should fail to resolve packages outside std.
// Verifies golang.org/issue/34669.
func TestImportPackageOutsideModule(t *testing.T) {}

// TestIssue23594 prevents go/build from regressing and populating Package.Doc
// from comments in test files.
func TestIssue23594(t *testing.T) {}

// TestIssue56509 tests that go/build does not add non-go files to InvalidGoFiles
// when they have unparsable comments.
func TestIssue56509(t *testing.T) {}

// TestMissingImportErrorRepetition checks that when an unknown package is
// imported, the package path is only shown once in the error.
// Verifies golang.org/issue/34752.
func TestMissingImportErrorRepetition(t *testing.T) {}

// TestCgoImportsIgnored checks that imports in cgo files are not included
// in the imports list when cgo is disabled.
// Verifies golang.org/issue/35946.
func TestCgoImportsIgnored(t *testing.T) {}

// Issue #52053. Check that if there is a file x_GOOS_GOARCH.go that both
// GOOS and GOARCH show up in the Package.AllTags field. We test both the
// case where the file matches and where the file does not match.
// The latter case used to fail, incorrectly omitting GOOS.
func TestAllTags(t *testing.T) {}

func TestAllTagsNonSourceFile(t *testing.T) {}

func TestDirectives(t *testing.T) {}