testing: test naming guidelines are inconsistent with real-world practice #23322
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?1.9.2
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?linux amd64
What did you do?
What did you expect to see?
What did you see instead?
Official documentation for Go testing package states, that
go test
There are tons of open-source go projects that use
_
(underscore) in tests names (although all Google projects I've seen so far do follow these naming guidelines), yet_
is not alphanumeric and, according to the documentation, should not work.I believe either this statement in documentation has to be clarified or
go test
behavior has to be adjusted to conform to the documentation (unlikely, considering how ubiquitous_
became)The text was updated successfully, but these errors were encountered: