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