aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/types_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/types_test.go')
-rw-r--r--src/go/types/types_test.go15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/go/types/types_test.go b/src/go/types/types_test.go
index 25cd996628..f2358c6e19 100644
--- a/src/go/types/types_test.go
+++ b/src/go/types/types_test.go
@@ -4,16 +4,5 @@
package types
-import "sync/atomic"
-
-// Upon calling ResetId, nextId starts with 1 again.
-// It may be called concurrently. This is only needed
-// for tests where we may want to have a consistent
-// numbering for each individual test case.
-func ResetId() { atomic.StoreUint32(&lastId, 0) }
-
-// SetGoVersion sets the unexported goVersion field on config, so that tests
-// which assert on behavior for older Go versions can set it.
-func SetGoVersion(config *Config, goVersion string) {
- config.goVersion = goVersion
-}
+// Debug is set if go/types is built with debug mode enabled.
+const Debug = debug