leakcheck

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package leakcheck fails a package's tests if they leak goroutines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Leaks

func Leaks() string

Leaks returns the goroutineleak profile if it finds leaked goroutines, else an empty string.

func Main

func Main(m *testing.M)

Main runs the tests and fails them if goroutines are left blocked forever: on a channel or lock that nothing else can reach, as the goroutineleak profile finds them. Goroutines waiting on a timer or on a context that is still reachable are not found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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