]> Cypherpunks repositories - gostls13.git/commitdiff
testing: clarify when Cleanup is called
authorCarlo Alberto Ferraris <cafxx@strayorange.com>
Fri, 2 Apr 2021 08:36:54 +0000 (17:36 +0900)
committerIan Lance Taylor <iant@golang.org>
Fri, 2 Apr 2021 21:57:58 +0000 (21:57 +0000)
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>

src/testing/testing.go

index 056a8d2879e37d88cea45e9bd2975e65ac73b5c1..851b118df4f6b7f3f4dde587c13b9fe18eaee94e 100644 (file)
@@ -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()) {