1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:27:59 -07:00

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>
This commit is contained in:
Carlo Alberto Ferraris 2021-04-02 17:36:54 +09:00 committed by Ian Lance Taylor
parent 35a8bbc9ea
commit f25d78f8e2

View 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()) {