aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Bozhko <andybozhko@gmail.com>2022-12-21 22:24:05 +0000
committerGopher Robot <gobot@golang.org>2022-12-23 17:16:59 +0000
commit38cfb3be9d486833456276777155980d1ec0823e (patch)
treee72bc1aa0bf9917f6d7719747fd5ee545a90a637
parent1ba7341cb21d9edb2a04eb0b24b3af71899b35fc (diff)
downloadgo-38cfb3be9d486833456276777155980d1ec0823e.tar.gz
go-38cfb3be9d486833456276777155980d1ec0823e.zip
testing: rephrase the sentence about naming test files
This updates the explanation about naming test files to be a little more clear. Fixes #57389 Change-Id: I9b3a8e2dae5e3ad398b55624e183809b7d90864c GitHub-Last-Rev: 9ff81b74b201ca032fd373424aa02a3fedaec008 GitHub-Pull-Request: golang/go#57399 Reviewed-on: https://go-review.googlesource.com/c/go/+/458435 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Fahad King <fahadking750@gmail.com> Reviewed-by: Rob Pike <r@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com>
-rw-r--r--src/testing/testing.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index acd28667c2..fc34cbf28b 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -13,8 +13,9 @@
//
// Within these functions, use the Error, Fail or related methods to signal failure.
//
-// To write a new test suite, create a file whose name ends _test.go that
-// contains the TestXxx functions as described here.
+// To write a new test suite, create a file that
+// contains the TestXxx functions as described here,
+// and give that file a name ending in "_test.go".
// The file will be excluded from regular
// package builds but will be included when the "go test" command is run.
//