goroutineleak

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package goroutineleak adds Go's reachability-based leak check to TestMain. Production code must not import this test helper. Existing resource and goroutine-count assertions still cover leaks that this profile cannot find.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(run func() int, diagnostics io.Writer) int

Run checks for leaked goroutines after run returns and all test cleanups finish. It preserves an existing failure code and never filters leaks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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