cleanup

package
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL