Help us shape the future of Go! Take the 2026 Go Developer Survey

configtest

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package configtest sets boost config values from tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(t *testing.T, env, value, restore string)

Set exports env=value and reloads the config with boost.Start. The config keeps a loaded value after its variable is gone, so on cleanup Set loads restore -- the key's default -- and unsets env again; a bad value set by one test never reaches the next.

Types

This section is empty.

Jump to

Keyboard shortcuts

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