Closed
Description
Mitchell Hashimoto pointed out at Gophercon that if you write
packages that provides extra test hooks mentioning *testing.T,
the import of "testing" forces the testing flags into any resulting
binary, even non-test binaries. At Hashicorp they define a separate
package that defines a copied testing.T interface only to avoid
these flag definitions.
I sent CL 49251 to delay the registration of the flags so that
those packages can import "testing" directly instead of a fake
package that must be kept in sync.
For discussion for Go 1.10.