cmd/go: rename all module tests to begin TestMod[A-Z]

Rename vgo_test.go to mod_test.go.
Part of the de-vgo-ification of the tree
and also to make it easier to run module tests
(go test -run=TestMod[A-Z]).

Change-Id: If4087787fc39789ec1de9e63fc8871e4206bae48
Reviewed-on: https://go-review.googlesource.com/122261
Reviewed-by: Bryan C. Mills <bcmills@google.com>
diff --git a/vendor/cmd/go/vgo_test.go b/vendor/cmd/go/mod_test.go
similarity index 97%
rename from vendor/cmd/go/vgo_test.go
rename to vendor/cmd/go/mod_test.go
index de4cc5b..60ec249 100644
--- a/vendor/cmd/go/vgo_test.go
+++ b/vendor/cmd/go/mod_test.go
@@ -21,7 +21,7 @@
 	"cmd/go/internal/vgo"
 )
 
-func TestVGOROOT(t *testing.T) {
+func TestModVGOROOT(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -33,7 +33,7 @@
 	tg.run("env")
 }
 
-func TestGO111MODULE(t *testing.T) {
+func TestModGO111MODULE(t *testing.T) {
 	tg := testgo(t)
 	defer tg.cleanup()
 	tg.makeTempdir()
@@ -92,7 +92,7 @@
 	tg.grepStdout(`"GOMOD": ""`, "expected module mode disabled")
 }
 
-func TestFindModuleRoot(t *testing.T) {
+func TestModFindModuleRoot(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -120,7 +120,7 @@
 	}
 }
 
-func TestFindModulePath(t *testing.T) {
+func TestModFindModulePath(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -164,7 +164,7 @@
 	}
 }
 
-func TestImportModFails(t *testing.T) {
+func TestModImportModFails(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "off") // testing GOPATH mode
 	defer tg.cleanup()
@@ -312,7 +312,7 @@
 
 // TODO(rsc): Test mod -sync, mod -fix (network required).
 
-func TestLocalModule(t *testing.T) {
+func TestModLocalModule(t *testing.T) {
 	// Test that local replacements work
 	// and that they can use a dummy name
 	// that isn't resolvable and need not even
@@ -338,7 +338,7 @@
 	tg.run("build")
 }
 
-func TestTags(t *testing.T) {
+func TestModTags(t *testing.T) {
 	// Test that build tags are used. See golang.org/issue/24053.
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
@@ -372,7 +372,7 @@
 	tg.grepStdout(`\[x.go y.go\]`, "Go source files for tag1 and tag2")
 }
 
-func TestFSPatterns(t *testing.T) {
+func TestModFSPatterns(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -401,7 +401,7 @@
 	tg.grepStdoutNot(`^m/y/z`, "should ignore submodule m/y/z...")
 }
 
-func TestGetModuleVersion(t *testing.T) {
+func TestModGetVersions(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 
 	tg := testgo(t)
@@ -467,7 +467,7 @@
 	tg.runFail("get", "-m", "golang.org/x/crypto/pbkdf2@7f39a6fea4fe9364")
 }
 
-func TestGetModuleUpgrade(t *testing.T) {
+func TestModGetUpgrade(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 
 	tg := testgo(t)
@@ -591,7 +591,7 @@
 	tg.grepStdout(`no matching versions for query ">v1.5.3"`, "expected no matching version")
 }
 
-func TestVgoBadDomain(t *testing.T) {
+func TestModBadDomain(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -608,7 +608,7 @@
 	tg.grepStderr("tcp.*nonexistent.rsc.io", "expected error for nonexistent.rsc.io")
 }
 
-func TestVgoSync(t *testing.T) {
+func TestModSync(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -685,7 +685,7 @@
 	tg.grepStdout(`^z.1\s+v1.2.0`, "need z.1 to stay at v1.2.0 even though y is gone")
 }
 
-func TestVgoVendor(t *testing.T) {
+func TestModVendor(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -799,7 +799,7 @@
 	}
 }
 
-func TestFillGoMod(t *testing.T) {
+func TestModInitLegacy(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
@@ -840,7 +840,7 @@
 	tg.grepStderrNot("copying requirements from .*Gopkg.lock", "should not copy Gopkg.lock again")
 }
 
-func TestQueryExcluded(t *testing.T) {
+func TestModQueryExcluded(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -871,7 +871,7 @@
 	tg.grepStdout("github.com/gorilla/mux v1.6.[1-9]", "expected version 1.6.1 or later")
 }
 
-func TestRequireExcluded(t *testing.T) {
+func TestModRequireExcluded(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -908,7 +908,7 @@
 	tg.grepStderr("github.com/gorilla/mux v1.6.1", "find version 1.6.1")
 }
 
-func TestConvertLegacyConfig(t *testing.T) {
+func TestModInitLegacy2(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
@@ -936,7 +936,7 @@
 	tg.grepStdout("v0.6.0", "expected github.com/pkg/errors at v0.6.0")
 }
 
-func TestVerify(t *testing.T) {
+func TestModVerify(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
@@ -1021,7 +1021,7 @@
 	tg.runFail("mod", "-verify") // explicit verify fails with missing ziphash
 }
 
-func TestVendorWithoutDeps(t *testing.T) {
+func TestModVendorNoDeps(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -1035,7 +1035,7 @@
 	tg.grepStderr("go: no dependencies to vendor", "print vendor info")
 }
 
-func TestVersionWithoutModule(t *testing.T) {
+func TestModVersionNoModule(t *testing.T) {
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
 	defer tg.cleanup()
@@ -1045,7 +1045,7 @@
 	tg.run("version")
 }
 
-func TestImportDir(t *testing.T) {
+func TestModImportDomainRoot(t *testing.T) {
 	testenv.MustHaveExternalNetwork(t)
 	tg := testgo(t)
 	tg.setenv("GO111MODULE", "on")
@@ -1097,5 +1097,4 @@
 	if count != 1 {
 		t.Fatal("produces duplicate imports")
 	}
-
 }