testing.common.cleanups (field)
9 uses
testing (current package)
testing.go#L395: cleanups []func() // optional functions to be called at the end of the test
testing.go#L906: c.cleanups = append(c.cleanups, fn)
testing.go#L988: recur := len(c.cleanups) > 0
testing.go#L998: if len(c.cleanups) > 0 {
testing.go#L999: last := len(c.cleanups) - 1
testing.go#L1000: cleanup = c.cleanups[last]
testing.go#L1001: c.cleanups = c.cleanups[:last]
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |