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

Method CheckDeepEqual

testutils/simplecheck.go:159–165  ·  view source on GitHub ↗

CheckDeepEqual checks that the value is equal to some reference.

(val, ref interface{})

Source from the content-addressed store, hash-verified

157
158// CheckDeepEqual checks that the value is equal to some reference.
159func (t *T) CheckDeepEqual(val, ref interface{}) {
160 t.Helper()
161 if !reflect.DeepEqual(val, ref) {
162 t.failWithf(false, "values not equal\ngot: %# v\nexpected: %# v",
163 pretty.Formatter(val), pretty.Formatter(ref))
164 }
165}
166
167// CheckRegexpEqual checks that the value is matched by some regular
168// expression.

Callers 15

TestWithContextFunction · 0.95
TestIssueLinkFunction · 0.95
TestUnimplementedErrorFunction · 0.95
TestGrpcFunction · 0.95
TestCombineErrorsFunction · 0.95
TestMultiErrorUnwrapFunction · 0.95
TestSimplifyStacksFunction · 0.95
TestAdaptBaseGoErrFunction · 0.95
TestAdaptPkgWithMessageFunction · 0.95
TestAdaptPkgFundamentalFunction · 0.95
TestAdaptPkgWithStackFunction · 0.95

Calls 1

failWithfMethod · 0.95

Tested by 15

TestWithContextFunction · 0.76
TestIssueLinkFunction · 0.76
TestUnimplementedErrorFunction · 0.76
TestGrpcFunction · 0.76
TestCombineErrorsFunction · 0.76
TestMultiErrorUnwrapFunction · 0.76
TestSimplifyStacksFunction · 0.76
TestAdaptBaseGoErrFunction · 0.76
TestAdaptPkgWithMessageFunction · 0.76
TestAdaptPkgFundamentalFunction · 0.76
TestAdaptPkgWithStackFunction · 0.76