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

Function Assert

internal/common/verify.go:63–67  ·  view source on GitHub ↗

Assert will panic with a given formatted message if the given condition is false.

(condition bool, msg string, v ...any)

Source from the content-addressed store, hash-verified

61
62// Assert will panic with a given formatted message if the given condition is false.
63func Assert(condition bool, msg string, v ...any) {
64 if !condition {
65 panic(fmt.Sprintf("assertion failed: "+msg, v...))
66 }
67}

Callers 15

dumpBucketFunction · 0.92
putMethod · 0.92
readMethod · 0.92
writeMethod · 0.92
spillMethod · 0.92
rebalanceMethod · 0.92
dereferenceMethod · 0.92
CommitMethod · 0.92
RollbackMethod · 0.92
InfoMethod · 0.92
nodeMethod · 0.92
FirstMethod · 0.92

Calls

no outgoing calls

Tested by 1

dumpBucketFunction · 0.74