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
func SkipLongIfSet ¶
SkipLongIfSet set the current test as being a "long" running one. If CPS_TEST_SKIP_LONG exactly equals to "1" this test is testing.T.SkipNow()
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.
Click to show internal directories.
Click to hide internal directories.