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

Function AssertionFailedWithDepthf

errutil/assertions.go:36–40  ·  view source on GitHub ↗

AssertionFailedWithDepthf creates an internal error with a stack trace collected at the specified depth. See the doc of `AssertionFailedf()` for more details.

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

Source from the content-addressed store, hash-verified

34// with a stack trace collected at the specified depth.
35// See the doc of `AssertionFailedf()` for more details.
36func AssertionFailedWithDepthf(depth int, format string, args ...interface{}) error {
37 err := NewWithDepthf(1+depth, format, args...)
38 err = assert.WithAssertionFailure(err)
39 return err
40}
41
42// HandleAsAssertionFailure hides an error and turns it into
43// an assertion failure. Both details from the original error and the

Callers 3

AssertionFailedfFunction · 0.92
AssertionFailedfFunction · 0.70

Calls 2

WithAssertionFailureFunction · 0.92
NewWithDepthfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…