telemetrygolang.org/x/telemetry/internal/configtest Index | Files

package configtest

import "golang.org/x/telemetry/internal/configtest"

Package configtest provides a helper for testing using a local proxy containing a fake upload config.

Index

Functions

func LocalProxyEnv

func LocalProxyEnv(t *testing.T, cfg *telemetry.UploadConfig, version string) []string

LocalProxyEnv writes a proxy directory for the given upload config, and returns a go environment to use for fetching that config from a local file-based proxy.

This environment should be passed to configstore.Download.

Source Files

configtest.go

Version
v0.0.0-20250214215356-6f9b61db478c (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
3 days ago

Tools for package owners.