leakcheck

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package leakcheck is a test helper that fails a test when goroutines of the named packages are still running. It replaces goleak without a dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t testing.TB, needles ...string)

Check fails t when, after polling for up to 2 s, a goroutine other than the caller's still has one of the needles in its stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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