Initial euclide.org release
This commit is contained in:
13
vendor/github.com/jarcoal/httpmock/env.go
generated
vendored
Normal file
13
vendor/github.com/jarcoal/httpmock/env.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package httpmock
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
var envVarName = "GONOMOCKS"
|
||||
|
||||
// Disabled allows to test whether httpmock is enabled or not. It
|
||||
// depends on GONOMOCKS environment variable.
|
||||
func Disabled() bool {
|
||||
return os.Getenv(envVarName) != ""
|
||||
}
|
||||
Reference in New Issue
Block a user