pdns-auth-proxy/vendor/github.com/jarcoal/httpmock/env.go

14 lines
239 B
Go
Raw Normal View History

2023-11-17 05:55:06 +00:00
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) != ""
}