eventtest

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package eventtest supports logging events to a test. You can use NewContext to create a context that knows how to deliver telemetry events back to the test. You must use this context or a derived one anywhere you want telemetry to be correctly 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 telemetry exporter that understands the special contexts returned by NewContext. This means you should not import this package if you are not going to call NewContext.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, t testing.TB) context.Context

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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