MCPcopy
hub / github.com/etcd-io/bbolt / IsVerificationEnabled

Function IsVerificationEnabled

internal/common/verify.go:23–26  ·  view source on GitHub ↗
(verification VerificationType)

Source from the content-addressed store, hash-verified

21}
22
23func IsVerificationEnabled(verification VerificationType) bool {
24 env := getEnvVerify()
25 return env == string(ENV_VERIFY_VALUE_ALL) || env == strings.ToLower(string(verification))
26}
27
28// EnableVerifications sets `ENV_VERIFY` and returns a function that
29// can be used to bring the original settings.

Callers 1

VerifyFunction · 0.85

Calls 1

getEnvVerifyFunction · 0.85

Tested by

no test coverage detected