gotools/go/packages/overlay_test.go

const commonMode

const everythingMode

func TestOverlayChangesPackageName(t *testing.T) {}

func testOverlayChangesPackageName(t *testing.T, exporter packagestest.Exporter) {}

func TestOverlayChangesBothPackageNames(t *testing.T) {}

func testOverlayChangesBothPackageNames(t *testing.T, exporter packagestest.Exporter) {}

func TestOverlayChangesTestPackageName(t *testing.T) {}

func testOverlayChangesTestPackageName(t *testing.T, exporter packagestest.Exporter) {}

func checkPkg(t *testing.T, p *packages.Package, id, name string, syntax int) bool {}

func TestOverlayXTests(t *testing.T) {}

// This test checks the behavior of go/packages.Load with an overlaid
// x test. The source of truth is the go/packages.Load results for the
// exact same package, just on-disk.
func testOverlayXTests(t *testing.T, exporter packagestest.Exporter) {}

func TestOverlay(t *testing.T) {}

func testOverlay(t *testing.T, exporter packagestest.Exporter) {}

func TestOverlayDeps(t *testing.T) {}

func testOverlayDeps(t *testing.T, exporter packagestest.Exporter) {}

func TestNewPackagesInOverlay(t *testing.T) {}

func testNewPackagesInOverlay(t *testing.T, exporter packagestest.Exporter) {}

// Test that we can create a package and its test package in an overlay.
func TestOverlayNewPackageAndTest(t *testing.T) {}

func testOverlayNewPackageAndTest(t *testing.T, exporter packagestest.Exporter) {}

func TestAdHocOverlays(t *testing.T) {}

// TestOverlayModFileChanges tests the behavior resulting from having files
// from multiple modules in overlays.
func TestOverlayModFileChanges(t *testing.T) {}

func TestOverlayGOPATHVendoring(t *testing.T) {}

func TestContainsOverlay(t *testing.T) {}

func testContainsOverlay(t *testing.T, exporter packagestest.Exporter) {}

func TestContainsOverlayXTest(t *testing.T) {}

func testContainsOverlayXTest(t *testing.T, exporter packagestest.Exporter) {}

func TestInvalidFilesBeforeOverlay(t *testing.T) {}

func testInvalidFilesBeforeOverlay(t *testing.T, exporter packagestest.Exporter) {}

// Tests golang/go#35973, fixed in Go 1.14.
func TestInvalidFilesBeforeOverlayContains(t *testing.T) {}

func testInvalidFilesBeforeOverlayContains(t *testing.T, exporter packagestest.Exporter) {}

func isTestVariant(libID, testID string) bool {}

func TestInvalidXTestInGOPATH(t *testing.T) {}

func testInvalidXTestInGOPATH(t *testing.T, exporter packagestest.Exporter) {}

// Reproduces golang/go#40685.
func TestAddImportInOverlay(t *testing.T) {}

func testAddImportInOverlay(t *testing.T, exporter packagestest.Exporter) {}

// Tests that overlays are applied for different kinds of load patterns.
func TestLoadDifferentPatterns(t *testing.T) {}

func testLoadDifferentPatterns(t *testing.T, exporter packagestest.Exporter) {}

// Tests that overlays are applied for a replaced module.
// This does not use go/packagestest because it needs to write a replace
// directive with an absolute path in one of the module's go.mod files.
func TestOverlaysInReplace(t *testing.T) {}