v3gotest.tools/v3/internal/cleanup Index | Files

package cleanup

import "gotest.tools/v3/internal/cleanup"

Package cleanup handles migration to and support for the Go 1.14+ testing.TB.Cleanup() function.

Index

Functions

func Cleanup

func Cleanup(t logT, f func())

Cleanup registers f as a cleanup function on t if any mechanisms are available.

Skips registering f if TEST_NOCLEANUP is set to true.

Source Files

cleanup.go

Version
v3.5.2 (latest)
Published
Sep 5, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
2 months ago

Tools for package owners.