package
Version:
v1.35.1
Opens a new window with list of versions in this module.
Published: Mar 10, 2022
License: Apache-2.0, 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.