1package httpmock 2 3import ( 4 "os" 5) 6 7var envVarName = "GONOMOCKS" 8 9// Disabled allows to test whether httpmock is enabled or not. It 10// depends on GONOMOCKS environment variable. 11func Disabled() bool { 12 return os.Getenv(envVarName) != "" 13} 14