MCPcopy Create free account
hub / github.com/cockroachdb/errors / Is

Method Is

markers/markers_test.go:761–766  ·  view source on GitHub ↗
(o error)

Source from the content-addressed store, hash-verified

759func (e *errWithIs) Error() string { return e.msg }
760
761func (e *errWithIs) Is(o error) bool {
762 if ex, ok := o.(*errWithIs); ok {
763 return e.secret == ex.secret
764 }
765 return false
766}
767
768func TestCompareUncomparable(t *testing.T) {
769 tt := testutils.T{T: t}

Callers 1

tryDelegateToIsMethodFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected