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

Function IsAssertionFailure

assert/assert.go:54–57  ·  view source on GitHub ↗

IsAssertionFailure returns true if the error (not its causes) is an assertion failure annotation. Consider using markers.If or HasAssertionFailure to test both the error and its causes.

(err error)

Source from the content-addressed store, hash-verified

52// assertion failure annotation. Consider using markers.If or
53// HasAssertionFailure to test both the error and its causes.
54func IsAssertionFailure(err error) bool {
55 _, ok := err.(*withAssertionFailure)
56 return ok
57}
58
59type withAssertionFailure struct {
60 cause error

Callers 2

IsAssertionFailureFunction · 0.92
TestAssertFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestAssertFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…