Movatterモバイル変換


[0]ホーム

URL:


eventtest

package
v0.37.0Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License:BSD-3-ClauseImports:8Imported by:0

Details

Repository

cs.opensource.google/go/x/tools

Links

Documentation

Overview

Package eventtest supports logging events to a test.You can use NewContext to create a context that knows how to delivertelemetry events back to the test.You must use this context or a derived one anywhere you want telemetry to becorrectly routed back to the test it was constructed with.Any events delivered to a background context will be dropped.

Importing this package will cause it to register a new global telemetryexporter that understands the special contexts returned by NewContext.This means you should not import this package if you are not going to callNewContext.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcNewContext

func NewContext(ctxcontext.Context, ttesting.TB)context.Context

NewContext returns a context you should use for the active test.

Types

This section is empty.

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