go/src/cmd/go/script_test.go

var testSum

// TestScript runs the tests in testdata/script/*.txt.
func TestScript(t *testing.T) {}

type testingTBKey

// tbContext returns a Context derived from ctx and associated with t.
func tbContext(ctx context.Context, t testing.TB) context.Context {}

// tbFromContext returns the testing.TB associated with ctx, if any.
func tbFromContext(ctx context.Context) (testing.TB, bool) {}

// initScriptDirs creates the initial directory structure in s for unpacking a
// cmd/go script.
func initScriptDirs(t testing.TB, s *script.State) (telemetryDir string) {}

func scriptEnv(srv *vcstest.Server, srvCertFile string) ([]string, error) {}

var extraEnvKeys

// updateSum runs 'go mod tidy', 'go list -mod=mod -m all', or
// 'go list -mod=mod all' in the test's current directory if a file named
// "go.mod" is present after the archive has been extracted. updateSum modifies
// archive and returns true if go.mod or go.sum were changed.
func updateSum(t testing.TB, e *script.Engine, s *script.State, archive *txtar.Archive) (rewrite bool) {}

func readCounters(t *testing.T, telemetryDir string) map[string]uint64 {}

func checkCounters(t *testing.T, telemetryDir string) {}

const disabledOnPlatform