mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
35a8bbc9ea
commit
f25d78f8e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
// subtests complete. Cleanup functions will be called in last added,
|
||||||
// first called order.
|
// first called order.
|
||||||
func (c *common) Cleanup(f func()) {
|
func (c *common) Cleanup(f func()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue