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

Function Verify

internal/common/verify.go:56–60  ·  view source on GitHub ↗

Verify performs verification if the assertions are enabled. In the default setup running in tests and skipped in the production code.

(f func())

Source from the content-addressed store, hash-verified

54// Verify performs verification if the assertions are enabled.
55// In the default setup running in tests and skipped in the production code.
56func Verify(f func()) {
57 if IsVerificationEnabled(ENV_VERIFY_VALUE_ASSERT) {
58 f()
59 }
60}
61
62// Assert will panic with a given formatted message if the given condition is false.
63func Assert(condition bool, msg string, v ...any) {

Callers 5

nodeMethod · 0.92
mergeSpansMethod · 0.92
FreeCountMethod · 0.92
mergeSpansMethod · 0.92
FreeMethod · 0.92

Calls 1

IsVerificationEnabledFunction · 0.85

Tested by

no test coverage detected