package
Version:
v1.92.0
Opens a new window with list of versions in this module.
Published: Jun 11, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Fake(key, value string) func()
Mock updates secrets so that any fetch of key would return
the provided value. It returns the cleanup function.
Usage:
func TestXYZ(t *testing.T) {
defer secretstest.Fake("/etc/.honeycomb_api_key", "SOME KEY")()
... regular tests ..
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.