Movatterモバイル変換


[0]ホーム

URL:


leakcheck

package
v0.123.0Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License:Apache-2.0Imports:4Imported by:0

Details

Repository

github.com/googleapis/google-cloud-go

Links

Documentation

Overview

Package leakcheck contains functions to check leaked goroutines.

Call "defer leakcheck.Check(t)" at the beginning of tests.

This is very closely based on grpc-go's leakcheck.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCheck

func Check(eferErrorfer)

Check looks at the currently-running goroutines and checks if there are anyinterestring (created by gRPC) goroutines leaked. It waits up to 10 secondsin the error cases.

funcRegisterIgnoreGoroutine

func RegisterIgnoreGoroutine(sstring)

RegisterIgnoreGoroutine appends s into the ignore goroutine list. Thegoroutines whose stack trace contains s will not be identified as leakedgoroutines. Not thread-safe, only call this function in init().

Types

typeErrorfer

type Errorfer interface {Errorf(formatstring, args ...interface{})}

Errorfer is the interface that wraps the Errorf method. It's a subset oftesting.TB to make it easy to use Check.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp