diff options
| author | Ian Lance Taylor <iant@golang.org> | 2018-01-03 11:27:26 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-01-04 01:52:55 +0000 |
| commit | 43bf63fce1abad1d5fe673e2c869e4d32f62885e (patch) | |
| tree | 4ab1ada29096b60bece8795fde150069ba318e1f /src/testing/testing.go | |
| parent | f05c8b48ea2d249965418e76c9151a3d6bde7ed9 (diff) | |
| download | go-43bf63fce1abad1d5fe673e2c869e4d32f62885e.tar.xz | |
cmd/go, testing: test names don't have to be alphanumeric
In func TestXxxx(*testing.T) the Xxxx can be anything that can appear
in an identifier, but can't start with a lowercase letter. Clarify the docs.
Fixes #23322
Change-Id: I5c297916981f7e3890ee955d12bc7422a75488e2
Reviewed-on: https://go-review.googlesource.com/86001
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 3a4e256b49..f56dbf8f6d 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -6,8 +6,8 @@ // It is intended to be used in concert with the ``go test'' command, which automates // execution of any function of the form // func TestXxx(*testing.T) -// where Xxx can be any alphanumeric string (but the first letter must not be in -// [a-z]) and serves to identify the test routine. +// where Xxx does not start with a lowercase letter. The function name +// serves to identify the test routine. // // Within these functions, use the Error, Fail or related methods to signal failure. // |
