Documentation
¶
Index ¶
Constants ¶
View Source
const (
EnvCpsTestSkipLong = "CPS_TEST_SKIP_LONG"
)
Testutils constants
Variables ¶
This section is empty.
Functions ¶
func GetTestConf ¶
func GetTestConf() config.CanopsisConf
Types ¶
type EnvBackup ¶
type EnvBackup struct {
// contains filtered or unexported fields
}
EnvBackup handles backup and restore of environment variables.
{ e := NewEnvBackup("MY_VAR", "newval") doYourStuff() e.Restore() }
func NewEnvBackup ¶
NewEnvBackup create EnvBackup, then run SaveSet(newval) before returning.
func (EnvBackup) Restore ¶
Restore set the env var to it's backuped value.
Click to show internal directories.
Click to hide internal directories.