go/src/cmd/go/internal/modfetch/codehost/git_test.go

func TestMain(m *testing.M) {}

var (
	gitrepo1
	hgrepo1
	vgotest1
)

var altRepos

var localGitRepo

// localGitURL initializes the repo in localGitRepo and returns its URL.
func localGitURL(t testing.TB) string {}

var localGitURLOnce

var localGitURLErr

func testMain(m *testing.M) (err error) {}

func testContext(t testing.TB) context.Context {}

type testWriter

func newTestWriter(t testing.TB) *testWriter {}

func (w *testWriter) Write(p []byte) (int, error) {}

func testRepo(ctx context.Context, t *testing.T, remote string) (Repo, error) {}

func TestTags(t *testing.T) {}

func TestLatest(t *testing.T) {}

func TestReadFile(t *testing.T) {}

type zipFile

func TestReadZip(t *testing.T) {}

var hgmap

func TestStat(t *testing.T) {}

func remap(name string, m map[string]string) string {}