MCPcopy Index your code
hub / github.com/cockroachdb/errors / AssertionFailedf

Function AssertionFailedf

errutil/assertions.go:29–31  ·  view source on GitHub ↗

AssertionFailedf creates an internal error. Detail is shown: - via `errors.GetSafeDetails()`, shows redacted strings. - when formatting with `%+v`. - in Sentry reports.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

27// - when formatting with `%+v`.
28// - in Sentry reports.
29func AssertionFailedf(format string, args ...interface{}) error {
30 return AssertionFailedWithDepthf(1, format, args...)
31}
32
33// AssertionFailedWithDepthf creates an internal error
34// with a stack trace collected at the specified depth.

Callers 2

datadriven_test.goFile · 0.92
AsFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…