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

Function HasAssertionFailure

assert_api.go:30–30  ·  view source on GitHub ↗

HasAssertionFailure returns true if the error or any of its causes is an assertion failure annotation.

(err error)

Source from the content-addressed store, hash-verified

28// HasAssertionFailure returns true if the error or any of its causes
29// is an assertion failure annotation.
30func HasAssertionFailure(err error) bool { return assert.HasAssertionFailure(err) }
31
32// IsAssertionFailure returns true if the error (not its causes) is an
33// assertion failure annotation. Consider using markers.If or

Callers

nothing calls this directly

Calls 1

HasAssertionFailureFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…