diff options
author | Carlo Alberto Ferraris <cafxx@strayorange.com> | 2021-04-02 17:36:54 +0900 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-04-02 21:57:58 +0000 |
commit | f25d78f8e216f5558885ffd2cea39b3ff1a3ff43 (patch) | |
tree | 38294a5c351fa502c4283bce2377ae4f3c4144fa /src/testing | |
parent | 35a8bbc9eaf876ee625d33401081f74a7c4e08f8 (diff) | |
download | go-f25d78f8e216f5558885ffd2cea39b3ff1a3ff43.tar.gz go-f25d78f8e216f5558885ffd2cea39b3ff1a3ff43.zip |
testing: clarify when Cleanup is called
Change-Id: I2ed394fccec83aac09a49673554cbf504787965b
Reviewed-on: https://go-review.googlesource.com/c/go/+/306810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 056a8d2879..851b118df4 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -876,7 +876,7 @@ func (c *common) Helper() { } } -// Cleanup registers a function to be called when the test and all its +// Cleanup registers a function to be called when the test (or subtest) and all its // subtests complete. Cleanup functions will be called in last added, // first called order. func (c *common) Cleanup(f func()) { |